private void ServiceTimer_Tick(object sender, System.Timers.ElapsedEventArgs e) { Geral geral = new Geral(); geral.LerRegistros(); if (getCallType == 1) { timer1.Stop(); SetTimer(); } }
/// <summary> /// The main entry point for the application. /// </summary> static void Main() { Geral geral = new Geral(); geral.LerRegistros(); //ServiceBase[] ServicesToRun; //ServicesToRun = new ServiceBase[] //{ // new Scheduler() //}; //ServiceBase.Run(ServicesToRun); }