/BlogEngine/DotNetSlave.BusinessLogic/SavedEventArgs.cs
C# | 60 lines | 23 code | 10 blank | 27 comment | 0 complexity | 6b96a581a5ea05a384ceceb4966e65c5 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
- namespace BlogEngine.Core
- {
- using System;
-
- /// <summary>
- /// The action performed by the save event.
- /// </summary>
- public enum SaveAction
- {
- /// <summary>
- /// Default. Nothing happened.
- /// </summary>
- None,
-
- /// <summary>
- /// It's a new object that has been inserted.
- /// </summary>
- Insert,
-
- /// <summary>
- /// It's an old object that has been updated.
- /// </summary>
- Update,
-
- /// <summary>
- /// The object was deleted.
- /// </summary>
- Delete
- }
-
- /// <summary>
- /// The saved event args.
- /// </summary>
- public class SavedEventArgs : EventArgs
- {
- #region Constructors and Destructors
-
- /// <summary>
- /// Initializes a new instance of the <see cref="SavedEventArgs"/> class.
- /// </summary>
- /// <param name="action">
- /// The action.
- /// </param>
- public SavedEventArgs(SaveAction action)
- {
- this.Action = action;
- }
-
- #endregion
-
- #region Properties
-
- /// <summary>
- /// Gets or sets the action that occured when the object was saved.
- /// </summary>
- public SaveAction Action { get; set; }
-
- #endregion
- }
- }