コード例 #1
0
 public void LoadData()
 {
     dgvDSKH.DataSource = kh.LayKhachHang();
     KH();
     LayTenNhanVien();
     DayLenToolStrips();
 }
コード例 #2
0
        public void LoadData()
        {
            DataTable dt = new DataTable();



            dgvDonHang1.DataSource = dh.LayDonHang();
            dgvDSDH1.DataSource    = dh.LayDonHang();
            txtDiaChi.ResetText();
            deNgayChuyen.ResetText();
            btnThem.Enabled          = true;
            btnSua.Enabled           = true;
            btnXoa.Enabled           = true;
            btnThemKhachHang.Enabled = true;

            btnThemPhiShip.Enabled = true;
            btnLuu.Enabled         = false;
            tam = 2;
            //Do len combobox
            dt = tt.LayNhanVien1();

            dt = new DataTable();
            dt = kh.LayKhachHang();
            cbMaKH.DataSource    = dt;
            cbMaKH.DisplayMember = "TenKhachHang";
            cbMaKH.ValueMember   = "MaKH";
            //Hien ten nhan vien
            LayTenNhanVien();
            DayLenToolStrips();
        }