예제 #1
0
        static void Main(string[] args)
        {
            Application.Run();

            //var WindowForm = new WindowsFormsTeste.Form1();



            //var testete = WindowForm.getQtdProcess();


            var jab = new JABController();


            jab = new JABController();
            jab.InicializarDriver();


            jab.CheckJVM();


            Task t = new Task(() =>
            {
                Thread.Sleep(4000);
                while (true)
                {
                    jab.CheckJVM();
                    Thread.Sleep(4000);
                }
            });

            t.Start();

            Console.ReadKey();
        }
예제 #2
0
        static void Main(string[] args)
        {
            var jab = new JABController();

            jab.InicializarDriver()
            .CheckJVM();


            Task t = new Task(() =>
            {
                while (true)
                {
                    jab.CheckJVM();
                    Thread.Sleep(1000);
                }
            });

            t.Start();

            Console.ReadKey();
        }