示例#1
0
        void load()
        {
            try
            {
                dslop = lopBLL.DSLop(ref error);

                dgvDanhsachLop.DataSource = dslop.Tables[0];

                dsgv                = giangVienBLL.DSGV(ref error);
                cbxGV.DataSource    = dsgv.Tables[0];
                cbxGV.DisplayMember = "TenGV";
                cbxGV.ValueMember   = "IDGV";

                dsmh                = monHocBLL.DSMH(ref error);
                cbxMH.DataSource    = dsmh.Tables[0];
                cbxMH.DisplayMember = "TenMH";
                cbxMH.ValueMember   = "IDMH";
                dong();
            }
            catch (Exception)
            {
                MessageBox.Show("Lỗi load !!!", "Lỗi",
                                MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
        }