예제 #1
0
 private void contacts_DoubleClick(object sender, EventArgs e)
 {
     Contact contact = null;
        ListViewItem lvitem = null;
        foreach (ListViewItem item in this.contacts.SelectedItems)
        {
     contact = (Contact)item.Tag;
     lvitem = item;
        }
        if (contact != null)
        {
     ContactDoubleClickedEventArgs args = new ContactDoubleClickedEventArgs(this.addressBook, contact, lvitem);
     if (ContactDoubleClicked != null)
     {
      ContactDoubleClicked(this, args);
     }
        }
 }
예제 #2
0
 private void booksContacts_ContactDoubleClicked(object sender, ContactDoubleClickedEventArgs e)
 {
     add_Click(sender, e);
 }