Moves event args classes to separate files

This commit is contained in:
Shannon Deminick
2012-12-15 10:44:09 +05:00
parent 2035f2d77f
commit 41e3471f2e
12 changed files with 92 additions and 69 deletions

View File

@@ -0,0 +1,4 @@
namespace Umbraco.Core.Events
{
public class ContentCacheEventArgs : System.ComponentModel.CancelEventArgs { }
}

View File

@@ -0,0 +1,10 @@
namespace Umbraco.Core.Events
{
public class CopyEventArgs : System.ComponentModel.CancelEventArgs
{
/// <summary>
/// Gets or Sets the Id of the objects new parent.
/// </summary>
public int ParentId { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
namespace Umbraco.Core.Events
{
public class DeleteEventArgs : System.ComponentModel.CancelEventArgs
{
/// <summary>
/// Gets or Sets the Id of the object being deleted.
/// </summary>
public int Id { get; set; }
}
}

View File

@@ -1,68 +0,0 @@
namespace Umbraco.Core.Events
{
//Publishing Events
public class PublishingEventArgs : System.ComponentModel.CancelEventArgs
{
public PublishingEventArgs()
{
IsAllRepublished = false;
}
public PublishingEventArgs(bool isAllPublished)
{
IsAllRepublished = isAllPublished;
}
public bool IsAllRepublished { get; private set; }
}
public class SendToPublishEventArgs : System.ComponentModel.CancelEventArgs { }
//Moving object Events
public class MoveEventArgs : System.ComponentModel.CancelEventArgs
{
/// <summary>
/// Gets or Sets the Id of the objects new parent.
/// </summary>
public int ParentId { get; set; }
}
//Copying object Events
public class CopyEventArgs : System.ComponentModel.CancelEventArgs
{
/// <summary>
/// Gets or Sets the Id of the objects new parent.
/// </summary>
public int ParentId { get; set; }
}
//Rollback Content Event
public class RollbackEventArgs : System.ComponentModel.CancelEventArgs { }
//Content Cache Event args
public class ContentCacheEventArgs : System.ComponentModel.CancelEventArgs { }
public class RefreshContentEventArgs : System.ComponentModel.CancelEventArgs { }
//Generel eventArgs
public class DeleteEventArgs : System.ComponentModel.CancelEventArgs
{
/// <summary>
/// Gets or Sets the Id of the object being deleted.
/// </summary>
public int Id { get; set; }
}
public class SaveEventArgs : System.ComponentModel.CancelEventArgs { }
public class NewEventArgs : System.ComponentModel.CancelEventArgs
{
/// <summary>
/// Gets or Sets the Alias.
/// </summary>
public string Alias { get; set; }
/// <summary>
/// Gets or Sets the Id of the parent.
/// </summary>
public int ParentId { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
namespace Umbraco.Core.Events
{
public class MoveEventArgs : System.ComponentModel.CancelEventArgs
{
/// <summary>
/// Gets or Sets the Id of the objects new parent.
/// </summary>
public int ParentId { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
namespace Umbraco.Core.Events
{
public class NewEventArgs : System.ComponentModel.CancelEventArgs
{
/// <summary>
/// Gets or Sets the Alias.
/// </summary>
public string Alias { get; set; }
/// <summary>
/// Gets or Sets the Id of the parent.
/// </summary>
public int ParentId { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
namespace Umbraco.Core.Events
{
public class PublishingEventArgs : System.ComponentModel.CancelEventArgs
{
public PublishingEventArgs()
{
IsAllRepublished = false;
}
public PublishingEventArgs(bool isAllPublished)
{
IsAllRepublished = isAllPublished;
}
public bool IsAllRepublished { get; private set; }
}
}

View File

@@ -0,0 +1,4 @@
namespace Umbraco.Core.Events
{
public class RefreshContentEventArgs : System.ComponentModel.CancelEventArgs { }
}

View File

@@ -0,0 +1,4 @@
namespace Umbraco.Core.Events
{
public class RollbackEventArgs : System.ComponentModel.CancelEventArgs { }
}

View File

@@ -0,0 +1,4 @@
namespace Umbraco.Core.Events
{
public class SaveEventArgs : System.ComponentModel.CancelEventArgs { }
}

View File

@@ -0,0 +1,4 @@
namespace Umbraco.Core.Events
{
public class SendToPublishEventArgs : System.ComponentModel.CancelEventArgs { }
}

View File

@@ -117,7 +117,16 @@
<Compile Include="Dictionary\CultureDictionaryFactoryResolver.cs" />
<Compile Include="Dictionary\ICultureDictionaryFactory.cs" />
<Compile Include="Dynamics\DynamicInstanceHelper.cs" />
<Compile Include="Events\EventArgs.cs" />
<Compile Include="Events\ContentCacheEventArgs.cs" />
<Compile Include="Events\CopyEventArgs.cs" />
<Compile Include="Events\DeleteEventArgs.cs" />
<Compile Include="Events\PublishingEventArgs.cs" />
<Compile Include="Events\MoveEventArgs.cs" />
<Compile Include="Events\NewEventArgs.cs" />
<Compile Include="Events\RefreshContentEventArgs.cs" />
<Compile Include="Events\RollbackEventArgs.cs" />
<Compile Include="Events\SaveEventArgs.cs" />
<Compile Include="Events\SendToPublishEventArgs.cs" />
<Compile Include="MacroPropertyTypeResolver.cs" />
<Compile Include="Models\ContentBase.cs" />
<Compile Include="Models\ContentExtensions.cs" />