private void ThemKhachHang(object sender, EventArgs e) { CapNhatKhachHang capNhatKhachHang = new CapNhatKhachHang("-1"); capNhatKhachHang.whenInsertSuccessed += LoadData; capNhatKhachHang.ShowDialog(); }
private void navBarItem5_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { CapNhatKhachHang capNhatKhachHang = new CapNhatKhachHang("-1"); capNhatKhachHang.whenInsertSuccessed += TaiLaiKhachHang; capNhatKhachHang.ShowDialog(); }
private void SuaKhachHang(object sender, EventArgs e) { try { CapNhatKhachHang capNhatKhachHang = new CapNhatKhachHang(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "MaKH").ToString()); capNhatKhachHang.whenInsertSuccessed += LoadData; capNhatKhachHang.ShowDialog(); } catch { } }