private void Edit() { // idAddress if (idAddress > 0) { frmContact frm = new frmContact(); frm.idAddress = this.idAddress; OpenForm(frm); } }
private void Edit() { // idAddress int id = Utilities.FormOperations.GetId(dgvData); if (id > 0) { frmContact frm = new frmContact(); frm.idAddress = id; OpenForm(frm); } }
private void OpenForm(frmContact form) { this.Hide(); form.ShowDialog(); this.Show(); }