Example #1
0
        private void Button_Them_Click(object sender, RoutedEventArgs e)
        {
            ThemKhachHang them = new ThemKhachHang();

            them.ShowDialog();
            NapDuLieuKhachHang();
        }
Example #2
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            ThemKhachHang khachHang = new ThemKhachHang();

            khachHang.ShowDialog();
            Load_KHACHHANG();
        }
Example #3
0
        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();
        }
Example #5
0
        //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();
        }
Example #6
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            KhachHangDTO KhachHangDTO = new KhachHangDTO()
            {
                ConQuanLy = true
            };
            ThemKhachHang frm = new ThemKhachHang(true, KhachHangDTO);

            frm.ShowDialog();

            hienThi();
        }
Example #7
0
 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);
     }
 }
Example #8
0
        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();
        }