private void btn_msg_contacts_Click(object sender, EventArgs e) { ContactForm cf = new ContactForm(); cf.ContactSelected += (Contact c) => { textbox_mail_to.Text += c.Email + ";"; receivers.Add(c); cf.Close(); }; cf.ShowDialog(this); }
private void Contacts_Click(object sender, EventArgs e) { ContactForm c = new ContactForm(); c.ShowDialog(this); }