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