예제 #1
0
        private void AddClick(object sender, EventArgs e)
        {
            AddEditContact addEditContact = new AddEditContact();

            addEditContact.Activate();
            addEditContact.ShowDialog();
        }
예제 #2
0
 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();
     }
 }