Exemplo n.º 1
0
        private void ServiceTimer_Tick(object sender, System.Timers.ElapsedEventArgs e)
        {
            Geral geral = new Geral();

            geral.LerRegistros();

            if (getCallType == 1)
            {
                timer1.Stop();
                SetTimer();
            }
        }
Exemplo n.º 2
0
        /// <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);
        }