弗瑞斯达

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: :: 管理 ::

2010年10月20日

摘要: 理解委托:关于两个窗体的互操作Form1: public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void frm_setTextEvent(string text) { this.Text = text; } private void button1_Click(object sender, EventArgs e) { Form2 frm = new Form2(); frm.setTextEvent += new Form2.setTextHandler(frm_setT 阅读全文
posted @ 2010-10-20 23:36 弗瑞斯达 阅读(186) 评论(0) 推荐(0)