private void BtnAddContact_Click(object sender, EventArgs e) { ContactActionForm contactAction = new ContactActionForm(); contactAction.Activate(); contactAction.Show(); }
private void BtnEditContact_Click(object sender, EventArgs e) { if (ContactsListView.SelectedItems.Count > 0) { Contact contact = (Contact)ContactsListView.SelectedItems[0].Tag; ContactActionForm contactAction = new ContactActionForm(contact); contactAction.Activate(); contactAction.Show(); } else { MessageBox.Show("Select a CONTACT before EDITING", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }