您目前尚未登陆,请选择【登陆】或【注册
首页->博客论坛->LiveBlog v1.0测试版源码>>LiveBlog.Core/SavedEventArgs.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:LiveBlog v1.0测试版源码
当前文件:文件类型 LiveBlog/LiveBlog.Core/SavedEventArgs.cs打开代码结构图
普通视图
		            
1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace 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
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:LiveBlog v1.0测试版源码
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号