private void ThemKH(object sender, EventArgs e) { frmThemKhoHang tkh = new frmThemKhoHang(); tkh.ShowDialog(); LoadData(); }
private void Sua(object sender, EventArgs e) { KhoHang kh = new KhoHang() { MaKho = gvKhoHang.GetRowCellValue(gvKhoHang.FocusedRowHandle, "Mã").ToString(), TenKho = gvKhoHang.GetRowCellValue(gvKhoHang.FocusedRowHandle, "Tên").ToString(), LienHe = gvKhoHang.GetRowCellValue(gvKhoHang.FocusedRowHandle, "Liên Hệ").ToString(), DienThoai = gvKhoHang.GetRowCellValue(gvKhoHang.FocusedRowHandle, "Điện Thoại").ToString(), GhiChu = gvKhoHang.GetRowCellValue(gvKhoHang.FocusedRowHandle, "Ghi Chú").ToString() //ConQuanLy = bool.Parse( gvKhoHang.GetRowCellValue(gvKhoHang.FocusedRowHandle, "Còn Quản Lý").ToString()) }; frmThemKhoHang tnh = new frmThemKhoHang(kh); tnh.ShowDialog(); LoadData(); }
private void ThemKH(object sender, EventArgs e) { frmThemKhoHang kh = new frmThemKhoHang(); kh.ShowDialog(); }
private void nbKhoHang_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { frmThemKhoHang thh = new frmThemKhoHang(); thh.ShowDialog(); }