public FQuyTrinhBaoTri() { InitializeComponent(); DBQuyTrinhBT quytrinh = new DBQuyTrinhBT(); quytrinh.updateGridData(dataGridQuyTrinh); DBNhanVien nv = new DBNhanVien(); nv.updateComboBoxTenOnly(cbNguoiViet); }
public FBaoTri() { InitializeComponent(); DBNhanVien bnv = new DBNhanVien(); bnv.updateComboBoxTenOnly(cbNhanVien); DBQuyTrinhBT dqt = new DBQuyTrinhBT(); dqt.updateComboBoxTenOnly(cbQuyTrinh); //timer interval t.Interval = 1000; //in milliseconds t.Tick += new EventHandler(this.t_Tick); //start timer when form loads t.Start(); //this will use t_Tick() method }