Пример #1
0
 public frm_Lop()
 {
     InitializeComponent();
     conn = new TV_kncsdl();
     if (conn.Moketnoi())
     {
         reloadDGV();
     }
     refresh();
     button(true, false, false, false, false, false, false);
 }
Пример #2
0
        public frm_SinhVien()
        {
            InitializeComponent();
            conn = new TV_kncsdl();
            if (conn.Moketnoi())
            {
                string sql = "select * from Lop";
                cbb_tenLop.DataSource    = conn.LayBang(sql);
                cbb_tenLop.DisplayMember = "ten_lop";
                cbb_tenLop.ValueMember   = "ma_lop";

                reloadDGV();
            }
            refresh();
            button(true, false, false, false, false, false, false, false);
        }