internal void SetWarning(Types.Gate.HWWarningReason Warning) { if (lblWarning.Visibility != Visibility.Visible) { lblWarning.Content = Warning.ToString(); lblWarning.Visibility = Visibility.Visible; } }
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 AddGateWarningEvent(Types.Gate.HWWarningReason Warning) { m_ActionQueue.Enqueue(delegate { if (Cache.Main.mainFrame.Content.Equals(Cache.UserTest)) { Cache.UserTest.SetGateWarning(Warning); } else { Cache.Gate.SetWarning(Warning); } }); }
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)); }