摘要: 1 public delegate void UpDataViewDelObject(object o); 2 public void UpDateView(object o) 3 { 4 try 5 { 6 object[] obj = (object[])o; ... 阅读全文
posted @ 2018-02-28 17:12 BaoMingZhu 阅读(961) 评论(0) 推荐(0) 编辑
摘要: if(MessageBox.Show("您确定要关闭软件吗?","询问",MessageBoxButtons.YesNo)!=DialogResult.Yes) { return; } 阅读全文
posted @ 2018-02-28 16:45 BaoMingZhu 阅读(996) 评论(0) 推荐(0) 编辑
摘要: 一、序列化: 二、反序列化: 阅读全文
posted @ 2018-02-28 16:32 BaoMingZhu 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1 public void WriteData() 2 { 3 try 4 { 5 if (System.IO.Directory.Exists(DataFileRootPath) == false) 6 { 7 System.IO.Directory.CreateDirectory(DataFil 阅读全文
posted @ 2018-02-28 16:14 BaoMingZhu 阅读(4157) 评论(0) 推荐(1) 编辑
摘要: 方法一: 方法二:使用委托实现 方法三:使用委托和Lambda 阅读全文
posted @ 2018-02-28 16:05 BaoMingZhu 阅读(186) 评论(0) 推荐(0) 编辑