コード例 #1
0
        private void ShowComboBoxLop(string maKhoa)
        {
            LopHocBUL     lopBUL = new LopHocBUL();
            List <LopHoc> dsLop  = lopBUL.DanhSach(maKhoa);

            cboLop.DataSource    = dsLop;
            cboLop.DisplayMember = "TenLop";
            cboLop.ValueMember   = "MaLop";
        }
コード例 #2
0
 private void Dashboard_Load(object sender, EventArgs e)
 {
     if (!this.DesignMode)
     {
         SinhVienBUL sv  = new SinhVienBUL();
         LopHocBUL   lop = new LopHocBUL();
         LopHocBUL   gv  = new LopHocBUL();
         numSV.Text  = sv.countSv();
         numLop.Text = lop.countLop();
         numGv.Text  = gv.countGv();
     }
 }