private void FireNotificationEvent(Types.Gate.HWProblemReason Problem, Types.Gate.HWWarningReason Warning, Types.Gate.HWFaultReason Fault, Types.Gate.HWDisableReason Disable) { SystemHost.Journal.AppendLog(ComplexParts.Gate, LogMessageType.Warning, string.Format( "Gate device notification: problem {0}, warning {1}, fault {2}, disable {3}", Problem, Warning, Fault, Disable)); m_Communication.PostGateNotificationEvent(Problem, Warning, Fault, Disable); }
public void AddGateFaultEvent(Types.Gate.HWFaultReason Fault) { m_ActionQueue.Enqueue(delegate { if (Cache.Main.mainFrame.Content.Equals(Cache.UserTest)) { Cache.UserTest.SetGateFault(Fault); } else { Cache.Gate.SetFault(Fault); } }); }
public void PostGateNotificationEvent(Types.Gate.HWProblemReason Problem, Types.Gate.HWWarningReason Warning, Types.Gate.HWFaultReason Fault, Types.Gate.HWDisableReason Disable) { EnumerateClients(Client => Client.GateNotificationHandler(Problem, Warning, Fault, Disable)); }
internal void SetFault(Types.Gate.HWFaultReason Fault) { lblFault.Content = Fault.ToString(); lblFault.Visibility = Visibility.Visible; IsRunning = false; }