Пример #1
0
        public void LoadLop()
        {
            var list = LopService.getLopHP();

            dataGridViewLop.AutoGenerateColumns = false;
            bdsLop.DataSource          = list;
            dataGridViewLop.DataSource = bdsLop;
        }
Пример #2
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            MonHoc monSelected = (MonHoc)cbMH.SelectedItem;
            var    list        = LopService.getLopHP(monSelected.MaMonHoc);

            bdsLop.DataSource          = list;
            dataGridViewLop.DataSource = bdsLop;
            txtMaLopHP.Text            = monSelected.TenMonHoc;
        }