Exemplo n.º 1
0
        private void frmSach_Load(object sender, EventArgs e)
        {
            BUS_GiangHang bus_GH = new BUS_GiangHang();

            cboGH.DataSource    = bus_GH.getGH();
            cboGH.ValueMember   = "MaGH";
            cboGH.DisplayMember = "TenGH";
            dgvSach.DataSource  = bus_sach.getSach();
        }
Exemplo n.º 2
0
        private void frmNhanVien_Load(object sender, EventArgs e)
        {
            BUS_GiangHang bus_GH = new BUS_GiangHang();

            dgvNhanVien.DataSource = bus_NhanVien.GetData();
            DataTable dt = bus_GH.getGH();

            cboMaGH.DataSource    = dt;
            cboMaGH.ValueMember   = "MaGH";
            cboMaGH.DisplayMember = "TenGH";
        }