Пример #1
0
 private void setComboDataSource()
 {
     cboPhongBan.DataSource = null;
     qlnv = new QLNVDataContext();
     cboPhongBan.DataSource    = qlnv.PhongBans;
     cboPhongBan.DisplayMember = "tenpb";
     cboPhongBan.ValueMember   = "mapb";
     cboPhongBan.Refresh();
 }
Пример #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     qlnv = new QLNVDataContext();
     setComboDataSource();
     lvNhanVien.Columns.Add("Ma NV");
     lvNhanVien.Columns.Add("Ho ten");
     lvNhanVien.Columns.Add("Dia chi");
     lvNhanVien.View = View.Details;
 }
Пример #3
0
 private void Form2_Load(object sender, EventArgs e)
 {
     qlnv = new QLNVDataContext();
     setComboDataSource();
 }