摘要: C# UDP编程简介 阅读全文
posted @ 2016-03-02 13:13 清晨时光 阅读(265) 评论(0) 推荐(0)
摘要: 服务端UI 客户端代码 阅读全文
posted @ 2016-03-02 11:13 清晨时光 阅读(8260) 评论(2) 推荐(3)
摘要: //把string字符串转换成xml格式 XDocument xd110 = XDocument.Parse(xml110); //加载指定路径下的文件到xml XDocument xDoc = XDocument.Load("Config.xml"); var query = from ele i 阅读全文
posted @ 2016-02-27 22:02 清晨时光 阅读(480) 评论(0) 推荐(0)
摘要: C#自定义工业控件开发 阅读全文
posted @ 2016-02-27 21:34 清晨时光 阅读(534) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/iamlilinfeng/archive/2012/09/25/2700049.html http://www.cnblogs.com/huangxincheng/category/340145.html 阅读全文
posted @ 2016-02-25 23:07 清晨时光 阅读(172) 评论(0) 推荐(0)
摘要: 在项目开发的过程中,WebService是经常要用的,当调用WebService方法时,需要经过服务的验证才可以调用,一般就是用户名/密码验证,还有一个就是证书.下面程序使用的是用户名/密码的方式,很简单的一个程序. 先看服务端的代码(ws_Service) MySoapHeader.cs 这里通过 阅读全文
posted @ 2016-02-25 14:22 清晨时光 阅读(3567) 评论(0) 推荐(0)
摘要: 单例模式就是保证在整个应用程序的生命周期中,在任何时刻,被指定的类只有一个实例,并为客户程序提供一个获取该实例的全局访问点。 一、经典模式: public class Singleton { private static Singleton instance; private Singleton() 阅读全文
posted @ 2016-02-25 11:24 清晨时光 阅读(4149) 评论(2) 推荐(0)
摘要: //后台线程更新TextBox private void SetTextBox(TextBox txt, string value) { Action act = () => { txt.Text = value; }; if (txt.InvokeRequired) { txt.Invoke(ac 阅读全文
posted @ 2016-02-24 18:54 清晨时光 阅读(945) 评论(0) 推荐(0)
摘要: //筛选 List<Person> persons = PersonsList(); persons = persons.Where(p => p.Age > 6).ToList(); //所有Age>6的Person的集合 persons = persons.Where(p => p.Name.C 阅读全文
posted @ 2016-02-24 11:52 清晨时光 阅读(201) 评论(0) 推荐(0)
摘要: 获取表字段: select * from user_tab_columns where Table_Name='用户表' order by column_name 获取表注释: select * from user_tab_comments where Table_Name='用户表' order 阅读全文
posted @ 2016-02-23 22:29 清晨时光 阅读(1213) 评论(0) 推荐(0)