private void button1_Click(object sender, EventArgs e) { EventHandler <BtnClickEventArgs> temp = BtnClickEvent; if (temp != null) { BtnClickEventArgs ee = new BtnClickEventArgs(); ee.Value = label1.Text; temp(sender, ee); } }
private void Fm_BtnClickEvent(object sender, BtnClickEventArgs e) { label1.Text = e.Value; }