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