private void Button_Them_Click(object sender, RoutedEventArgs e) { ThemKhachHang them = new ThemKhachHang(); them.ShowDialog(); NapDuLieuKhachHang(); }
private void simpleButton1_Click(object sender, EventArgs e) { ThemKhachHang khachHang = new ThemKhachHang(); khachHang.ShowDialog(); Load_KHACHHANG(); }
public void _ThemKH(object parameter) { ThemKhachHang themKhachHang = new ThemKhachHang(); themKhachHang.ShowDialog(); RefreshKH(); }
private void button1_Click(object sender, EventArgs e) { ThemKhachHang form = new ThemKhachHang(); form.ShowDialog(); Load_Customer(); }
//thêm khách hàng private void navBarItem5_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { KhachHangDTO KhachHangDTO = new KhachHangDTO() { ConQuanLy = true }; ThemKhachHang frm = new ThemKhachHang(true, KhachHangDTO); frm.ShowDialog(); }
private void btnThem_Click(object sender, EventArgs e) { KhachHangDTO KhachHangDTO = new KhachHangDTO() { ConQuanLy = true }; ThemKhachHang frm = new ThemKhachHang(true, KhachHangDTO); frm.ShowDialog(); hienThi(); }
private void btnThemKhachHang_Click(object sender, EventArgs e) { try { ThemKhachHang mThemTaiKhoan = new ThemKhachHang(mUser); mThemTaiKhoan.UCCuaSoChinh = this; this.Parent.Parent.Enabled = false; mThemTaiKhoan.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnSua_Click(object sender, EventArgs e) { _currentRowIndex = gridView1.FocusedRowHandle; if (_currentRowIndex < 0) { return; } KhachHangDTO KhachHangDTO = new KhachHangDTO() { MaKH = gridView1.GetRowCellValue(_currentRowIndex, gridView1.Columns["MaKH"]).ToString(), TenKH = gridView1.GetRowCellValue(_currentRowIndex, gridView1.Columns["TenKH"]).ToString(), TenkvKH = gridView1.GetRowCellValue(_currentRowIndex, gridView1.Columns["TenKV"]).ToString(), diachiKH = gridView1.GetRowCellValue(_currentRowIndex, gridView1.Columns["diachiKH"]).ToString(), DTKH = gridView1.GetRowCellValue(_currentRowIndex, gridView1.Columns["DTKH"]).ToString(), EmailKH = gridView1.GetRowCellValue(_currentRowIndex, gridView1.Columns["EmailKH"]).ToString(), ConQuanLy = bool.Parse(gridView1.GetRowCellValue(_currentRowIndex, gridView1.Columns["ConQuanLy"]).ToString()), }; ThemKhachHang frm = new ThemKhachHang(false, KhachHangDTO); frm.ShowDialog(); hienThi(); }