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 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);
         }
     });
 }
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 SetFault(Types.Gate.HWFaultReason Fault)
 {
     lblFault.Content    = Fault.ToString();
     lblFault.Visibility = Visibility.Visible;
     IsRunning           = false;
 }