private void button1_Click(object sender, EventArgs e) { if (stringevent != null) { SetEvent setEvent = new SetEvent(); setEvent.Str = textBox1.Text; stringevent(button1, setEvent); } }
private void ShowMessgae(object sender, SetEvent args) { textBox1.Text = args.Str; }