Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #7 from JimBobSquarePants/tabs-vs-spaces
Browse files Browse the repository at this point in the history
Replace Tabs with Spaces
  • Loading branch information
leekelleher committed Nov 13, 2014
2 parents 9a30e3b + 17ae5f5 commit 9c02b6b
Show file tree
Hide file tree
Showing 9 changed files with 277 additions and 277 deletions.
8 changes: 4 additions & 4 deletions src/Our.Umbraco.Ditto/Attributes/DittoIgnoreAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Our.Umbraco.Ditto
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class DittoIgnoreAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class DittoIgnoreAttribute : Attribute
{
}
}
30 changes: 15 additions & 15 deletions src/Our.Umbraco.Ditto/Attributes/UmbracoPropertyAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

namespace Our.Umbraco.Ditto
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class UmbracoPropertyAttribute : Attribute
{
public string PropertyName { get; set; }
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class UmbracoPropertyAttribute : Attribute
{
public string PropertyName { get; set; }

public string AltPropertyName { get; set; }
public string AltPropertyName { get; set; }

public bool Recursive { get; set; }
public bool Recursive { get; set; }

public object DefaultValue { get; set; }
public object DefaultValue { get; set; }

public UmbracoPropertyAttribute(string propertyName, string altPropertyName = "", bool recursive = false, object defaultValue = null)
{
PropertyName = propertyName;
AltPropertyName = altPropertyName;
Recursive = recursive;
DefaultValue = defaultValue;
}
}
public UmbracoPropertyAttribute(string propertyName, string altPropertyName = "", bool recursive = false, object defaultValue = null)
{
PropertyName = propertyName;
AltPropertyName = altPropertyName;
Recursive = recursive;
DefaultValue = defaultValue;
}
}
}
14 changes: 7 additions & 7 deletions src/Our.Umbraco.Ditto/EventArgs/ConvertedTypeEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

namespace Our.Umbraco.Ditto
{
public class ConvertedTypeEventArgs : EventArgs
{
public IPublishedContent Content { get; set; }
public class ConvertedTypeEventArgs : EventArgs
{
public IPublishedContent Content { get; set; }

public object Converted { get; set; }
public Type ConvertedType { get; set; }
}
public object Converted { get; set; }

public Type ConvertedType { get; set; }
}
}
8 changes: 4 additions & 4 deletions src/Our.Umbraco.Ditto/EventArgs/ConvertingTypeEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace Our.Umbraco.Ditto
{
public class ConvertingTypeEventArgs : CancelEventArgs
{
public IPublishedContent Content { get; set; }
}
public class ConvertingTypeEventArgs : CancelEventArgs
{
public IPublishedContent Content { get; set; }
}
}
30 changes: 15 additions & 15 deletions src/Our.Umbraco.Ditto/EventArgs/EventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

namespace Our.Umbraco.Ditto
{
public static class EventHandlers
{
public static event EventHandler<ConvertingTypeEventArgs> ConvertingType;
public static class EventHandlers
{
public static event EventHandler<ConvertingTypeEventArgs> ConvertingType;

public static event EventHandler<ConvertedTypeEventArgs> ConvertedType;
public static event EventHandler<ConvertedTypeEventArgs> ConvertedType;

public static void CallConvertingTypeHandler(ConvertingTypeEventArgs args)
{
if (ConvertingType != null)
ConvertingType(null, args);
}
public static void CallConvertingTypeHandler(ConvertingTypeEventArgs args)
{
if (ConvertingType != null)
ConvertingType(null, args);
}

public static void CallConvertedTypeHandler(ConvertedTypeEventArgs args)
{
if (ConvertedType != null)
ConvertedType(null, args);
}
}
public static void CallConvertedTypeHandler(ConvertedTypeEventArgs args)
{
if (ConvertedType != null)
ConvertedType(null, args);
}
}
}
Loading

0 comments on commit 9c02b6b

Please sign in to comment.