Ejemplo n.º 1
0
        protected override void OnStart()
        {
            Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;

            _copierFileService = new CopierFileService(this);
            _executionService = new ExecutionService(this);

            if (_copierFileService.CanProcessFile)
            {
                Timer.Start(_defaultTimerInterval);
                ChartObjects.DrawText(CopierTextObjectName, "Signal Receiver is running...", StaticPosition.TopRight, Colors.Yellow);
            }
            else
                Stop();
        }