摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;namespace 多线程2{ public partial class Form2 : Form { delegate void SetUpTitle(); public Form2() { Init 阅读全文
posted @ 2013-01-25 22:16 feidaochuanqing 阅读(198) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace 匿名函数{ //委托1 public delegate string SayHello(string str); //委托2 public delegate int Sum(int a,int b); public partia 阅读全文
posted @ 2013-01-23 20:46 feidaochuanqing 阅读(109) 评论(0) 推荐(0) 编辑
摘要: FrmQuery frmQuery = new FrmQuery();//实例化变量Type t = frmQuery.GetType();var res = t.GetField("txtSqlConditon",System.Reflection.BindingFlags.NonPublic| System.Reflection.BindingFlags.Instance); var value = res.GetValue(frmQuery);//取得值 阅读全文
posted @ 2013-01-16 14:22 feidaochuanqing 阅读(116) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using log4net;using log4net.Appender;namespace WindowsFormsApplication1{ public partial class Form1 : Form { public Form1() 阅读全文
posted @ 2013-01-05 17:51 feidaochuanqing 阅读(206) 评论(0) 推荐(0) 编辑