예제 #1
0
        private void SpeedMsgAgent()
        {
            PanelUpdate update = new PanelUpdate(UpdateSpeedModePanel);

            while (!_speedMsgEnd.WaitOne(0))
            {
                _apcsAccess.SpeedMessageEvent.WaitOne(Timeout.Infinite);
                if (!_speedMsgEnd.WaitOne(0))
                {
                    OperatingModePortalAdaptivePNL.Dispatcher.BeginInvoke(update, null);
                }
            }
        }
예제 #2
0
        private void SpeedMsgAgent()
        {
            EventLoggerAccess logger = ApcsAccess.Logger;

            try
            {
                PanelUpdate update = new PanelUpdate(SpeedModePanel_Update);
                while (/*run?*/ !_speedMsgEnd.WaitOne(Utilities.TimeTENTH) && (DetectorsAccess != null) && (DetectorsAccess.Apcs != null) && (DetectorsAccess.Apcs.SpeedMessageEvent != null))
                {
                    OperatingModePortalAdaptivePNL.Dispatcher.BeginInvoke(update, null);
                }
            }
            catch (Exception ex) { _speedMsgException = ex; }
        }
예제 #3
0
 private void SpeedMsgAgent()
 {
     EventLoggerAccess logger = ApcsAccess.Logger;
     try
     {
         PanelUpdate update = new PanelUpdate(SpeedModePanel_Update);
         while (/*run?*/ !_speedMsgEnd.WaitOne(Utilities.TimeTENTH) && (DetectorsAccess != null) && (DetectorsAccess.Apcs != null) && (DetectorsAccess.Apcs.SpeedMessageEvent != null))
             OperatingModePortalAdaptivePNL.Dispatcher.BeginInvoke(update, null);
     }
     catch (Exception ex) { _speedMsgException = ex; }
 }
예제 #4
0
        private void SpeedMsgAgent()
        {
            PanelUpdate update = new PanelUpdate(UpdateSpeedModePanel);

            while (!_speedMsgEnd.WaitOne(0))
            {
                _apcsAccess.SpeedMessageEvent.WaitOne(Timeout.Infinite);
                if (!_speedMsgEnd.WaitOne(0))
                    OperatingModePortalAdaptivePNL.Dispatcher.BeginInvoke(update, null);
            }
        }