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(); }
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(); }