温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:LiveBlog v1.0测试版源码
当前文件:
LiveBlog/LiveBlog.Core/SavedEventArgs.cs,打开代码结构图
LiveBlog/LiveBlog.Core/SavedEventArgs.cs,打开代码结构图1using System; 2
using System.Collections.Generic; 3
using System.Text; 4
5
namespace LiveBlog.Core 6
{ 7
/// <summary> 8
/// 9
/// </summary> 10
public class SavedEventArgs : EventArgs 11
{ 12
13
/// <summary> 14
/// Initializes a new instance of the <see cref="SavedEventArgs"/> class. 15
/// </summary> 16
/// <param name="action">The action.</param> 17
public SavedEventArgs(SaveAction action) 18
{ 19
Action = action; 20
} 21
22
private SaveAction _Action; 23
/// <summary> 24
/// Gets or sets the action that occured when the object was saved. 25
/// </summary> 26
public SaveAction Action 27
{ 28
get { return _Action; } 29
set { _Action = value; } 30
} 31
32
} 33
34
/// <summary> 35
/// The action performed by the save event. 36
/// </summary> 37
public enum SaveAction 38
{ 39
/// <summary> 40
/// Default. Nothing happened. 41
/// </summary> 42
None, 43
/// <summary> 44
/// It's a new object that has been inserted. 45
/// </summary> 46
Insert, 47
/// <summary> 48
/// It's an old object that has been updated. 49
/// </summary> 50
Update, 51
/// <summary> 52
/// The object was deleted. 53
/// </summary> 54
Delete 55
} 56
} 57





}