private void AddClick(object sender, EventArgs e) { AddEditContact addEditContact = new AddEditContact(); addEditContact.Activate(); addEditContact.ShowDialog(); }
private void EditClick(object sender, EventArgs e) { if (lv_contacts.SelectedItems.Count > 0) { Contact contact = (Contact)lv_contacts.SelectedItems[0].Tag; AddEditContact addEditContact = new AddEditContact(contact); addEditContact.Activate(); addEditContact.ShowDialog(); } }