public void ShowDGV() { demo db = new demo(); var li = db.SinhViens.Select(p => p); dataGridView1.DataSource = li.ToList(); }
public void SetCBB() { demo db = new demo(); comboBox1.Items.Add(new CBBItem { Val = 0, Text = "All" }); foreach (LopSV i in db.LopSVs) { comboBox1.Items.Add(new CBBItem { Text = i.NameLop, Val = i.ID_Lop }); } }