private void btnAdd_Click(object sender, EventArgs e) { frmEditContact frmEdit = new frmEditContact(null, sv.ID, null); frmEdit.ShowDialog(); loadData(); }
private void btnEdit_Click(object sender, EventArgs e) { DanhBa d = bdsContact.Current as DanhBa; frmEditContact frmEdit = new frmEditContact(d, null, d.ID); frmEdit.ShowDialog(); loadData(); }