Пример #1
0
        static void Main()
        {
            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new V_Led_Vong1());
            App app = new App(new V_Start());

            app.Load();
        }
Пример #2
0
        static void Main()
        {
            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new V_Led_Vong1());
            //App app = new App(new V_Start());
            //app.Load(null);
            //View view = new V_Led_Vong1();
            //view.ShowDialog();
            App app = new App(new V_LED_HienDiem());

            app.Load(null);
        }
        private void _tmrVong_Tick(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            string kq = (new BLL()).GetVongDangThi();

            if (kq == "0" || kq == null)
            {
                return;
            }
            if (kq == "1")
            {
                _tmrVong.Stop();
                App app1 = new App(new V_Led_Vong1());
                app1.Load(this._view);
                _tmrVong.Start();
            }
            else if (kq == "3")
            {
                _tmrVong.Stop();
                App app1 = new App(new V_LED_Vong3());
                app1.Load(this._view);
                _tmrVong.Start();
            }
        }