Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void AddGateProblemEvent(Types.Gate.HWProblemReason Problem)
 {
     m_ActionQueue.Enqueue(delegate
     {
         if (Cache.Main.mainFrame.Content.Equals(Cache.UserTest))
         {
             Cache.UserTest.SetGateProblem(Problem);
         }
         else
         {
             Cache.Gate.SetProblem(Problem);
         }
     });
 }
Beispiel #3
0
 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));
 }
Beispiel #4
0
 internal void SetProblem(Types.Gate.HWProblemReason Problem)
 {
     lblWarning.Content    = Problem.ToString();
     lblWarning.Visibility = Visibility.Visible;
 }