摘要: Object To Xml 文件 public static bool Serializer(object obj, string path) { FileStream xmlfile = new FileStream(path, FileMode.OpenOrCreate); //创建序列化对象 XmlSerializer xml = new XmlSerializer(typeof(T)); try { //序列化对象 xml.Seria... 阅读全文
posted @ 2013-08-22 22:46 JessZhu 阅读(5362) 评论(0) 推荐(0)
摘要: ORM在功能上主要有两个:把从数据库中查询返回的DataSet,DataTable转化为我们可以方便使用的实体类集合;把要对数据库操作的实体类集合或条件转化为数据库可以直接执行的SQL语句。 阅读全文
posted @ 2013-08-22 22:36 JessZhu 阅读(1629) 评论(0) 推荐(0)
摘要: 事件模型的几个规范:委托类型的名称以EventHandler结束;委托原型返回值为void;委托原型具有两个参数:sender表示事件触发者,e表示事件参数;事件参数的名称以EventArgs结束。 阅读全文
posted @ 2013-08-21 19:38 JessZhu 阅读(497) 评论(0) 推荐(0)
摘要: 1,委托时方法指针;2,委托时一个类,对其进行实例化的时候,要将引用的方法作为他的构造方法的参数。 阅读全文
posted @ 2013-08-21 19:31 JessZhu 阅读(194) 评论(0) 推荐(0)
摘要: We have two forms.Each form has a textBox,and Form1 has a Button beside the textBox.After click on the Button ,Form2 shows with also a textBox on it and Form1 is background where you can still see it. Now what we want is that,every letter you type in the Form2's textBox should immediately showed 阅读全文
posted @ 2012-12-12 09:53 JessZhu 阅读(274) 评论(0) 推荐(0)
摘要: I work in a ITCompany loacted in Shanghai as a progammer. A week ago I was sent to Qiaoqi Jiangyin for a project. My boss make me in charge of the part ofbusiness software. For me ,it is a hugechallenge. As a just gratuated student, I have no experience in work at the business scene. For an othe... 阅读全文
posted @ 2012-11-28 13:52 JessZhu 阅读(164) 评论(0) 推荐(0)
摘要: my english is not good,so i decide to wrte more.this is a practice.i want to write biog in english to make sure some foreign friends can read.my blog is going to record the problems i meet and how i figure it out.just this now,maybe in the future more.that's all! 阅读全文
posted @ 2012-08-26 13:51 JessZhu 阅读(171) 评论(6) 推荐(0)