日期:2014-05-18 浏览次数:20917 次
this.button1.Click += delegate(object sender, EventArgs e) { this.label1.Text = "Button1 was Clicked!"; }; this.button2.Click += new EventHandler(delegate(object sender, EventArgs e) { this.label1.Text = "Button2 was Clicked!"; });