摘要: 1、下载WebScoket 服务器类库Fleck.dll 与客户端类库websocket-sharp.dll : https://pan.baidu.com/s/1o9jU22e 2、WebSocket 服务器代码: 3、WebSocket 客户端代码: 阅读全文
posted @ 2018-03-02 10:18 BaoMingZhu 阅读(764) 评论(0) 推荐(0)
摘要: 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 阅读(1006) 评论(0) 推荐(0)
摘要: if(MessageBox.Show("您确定要关闭软件吗?","询问",MessageBoxButtons.YesNo)!=DialogResult.Yes) { return; } 阅读全文
posted @ 2018-02-28 16:45 BaoMingZhu 阅读(1035) 评论(0) 推荐(0)
摘要: 一、序列化: 二、反序列化: 阅读全文
posted @ 2018-02-28 16:32 BaoMingZhu 阅读(172) 评论(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 阅读(4260) 评论(0) 推荐(1)
摘要: 方法一: 方法二:使用委托实现 方法三:使用委托和Lambda 阅读全文
posted @ 2018-02-28 16:05 BaoMingZhu 阅读(198) 评论(0) 推荐(0)