コード例 #1
0
        public frmTimDiemSV(Login acc)
        {
            InitializeComponent();

            cboKhoa.DisplayMember = "MaKhoa";
            cboKhoa.ValueMember   = "MaKhoa";
            cboKhoa.DataSource    = ListKhoa.getAllKhoa();
            cboKhoa.SelectedIndex = 0;


            cboMonHoc.DisplayMember = "MaMon";
            cboMonHoc.ValueMember   = "MaMon";
            cboMonHoc.DataSource    = ListMon.getAllMon();
            cboMonHoc.SelectedIndex = 0;
            loadData();
        }
コード例 #2
0
        public frmQLDiem(Login acc)
        {
            InitializeComponent();
            cboLop.DisplayMember = "MaLop";
            cboLop.ValueMember = "MaLop";
            cboLop.DataSource = ListLop.getAllLop();
            cboLop.SelectedIndex = 0;

            cboKhoaHoc.DisplayMember = "TenKhoa";
            cboKhoaHoc.ValueMember = "MaKhoa";
            cboKhoaHoc.DataSource = ListKhoa.getAllKhoa();
            cboKhoaHoc.SelectedIndex = 0;

            cboMonHoc.DisplayMember = "MaMon";
            cboMonHoc.ValueMember = "MaMon";
            cboMonHoc.DataSource = ListMon.getAllMon();
            cboMonHoc.SelectedIndex = 0;
            loadData();
        }
コード例 #3
0
 private void loadData()
 {
     dgrMON.DataSource = ListMon.getAllMon();
 }