public frm_Lop() { InitializeComponent(); conn = new TV_kncsdl(); if (conn.Moketnoi()) { reloadDGV(); } refresh(); button(true, false, false, false, false, false, false); }
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); }