Esempio n. 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();
     }
 }
Esempio n. 2
0
        private void TsbNewContact_Click(object sender, EventArgs e)
        {
            ContactEditForm frm = new ContactEditForm(this, false);

            frm.ShowDialog();
        }