Esempio n. 1
0
        public FQuyTrinhBaoTri()
        {
            InitializeComponent();
            DBQuyTrinhBT quytrinh = new DBQuyTrinhBT();

            quytrinh.updateGridData(dataGridQuyTrinh);
            DBNhanVien nv = new DBNhanVien();

            nv.updateComboBoxTenOnly(cbNguoiViet);
        }
Esempio n. 2
0
        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
        }