private void btnEdit_Click(object sender, EventArgs e) { if (listKhachHang.SelectedRows.Count == 1) { int rowSelected = listKhachHang.SelectedRows[0].Index; String selectedId = listKhachHang.Rows[rowSelected].Cells["ID"].Value.ToString(); AddCustomer frmEdit = new AddCustomer(selectedId); frmEdit.ShowDialog(this); search_Click(sender, e); } }
private void DM_KhachHang_NewToolStripMenuItem_Click(object sender, EventArgs e) { AddCustomer frmCustomer = new AddCustomer(); frmCustomer.ShowDialog(this); }
private void lblThemMoi_Click(object sender, EventArgs e) { AddCustomer frmCustomer = new AddCustomer(); frmCustomer.ShowDialog(); }