예제 #1
0
 private void ViewContact()
 {
     if (dgvContacts.RowCount > 0)
     {
         int ID = int.Parse(dgvContacts.CurrentRow.Cells[0].Value.ToString());
         idRetour = ID;
         ContactEditForm frm = new ContactEditForm(this, true, ID);
         frm.ShowDialog();
     }
 }
예제 #2
0
        private void TsbNewContact_Click(object sender, EventArgs e)
        {
            ContactEditForm frm = new ContactEditForm(this, false);

            frm.ShowDialog();
        }