private void DigitalSystem_OnCommandReceived(object sender, Otc.Systems.SystemCommandEventArgs e)
 {
     if (e.CommandReceived == null)
     {
         return;
     }
     else if (e.CommandReceived is IAccessoryOperation)
     {
         this.AccessoryOperationCommandReceived((IAccessoryOperation)e.CommandReceived);
     }
     else if (e.CommandReceived is IEmergencyOff)
     {
         this.EmergencyStopCommandReceived();
     }
     else if (e.CommandReceived is IEmergencyStop)
     {
         this.EmergencyStopCommandReceived();
     }
     else if (e.CommandReceived is IResumeOperations)
     {
         this.ResumeOperationsCommandReceived();
     }
     else if (e.CommandReceived is ISystemInformation)
     {
         this.SystemInformationCommandReceived((ISystemInformation)e.CommandReceived);
     }
     else if (e.CommandReceived is IInterfaceInformation)
     {
         this.InterfaceInformationCommandReceived((IInterfaceInformation)e.CommandReceived);
     }
     else if (e.CommandReceived is IFeedbackStatusChanged)
     {
         this.FeedbackStatusReceived((IFeedbackStatusChanged)e.CommandReceived);
     }
 }
 private void DigitalSystem_OnCommandReceived(object sender, Otc.Systems.SystemCommandEventArgs e)
 {
     if (e.CommandReceived == null)
     {
         return;
     }
     else if (e.CommandReceived is IFeedbackStatusChanged)
     {
         IFeedbackStatusChanged reportedStatuses = e.CommandReceived as IFeedbackStatusChanged;
         if (reportedStatuses != null)
         {
             feedbackTesterControl.FeedbackReceived(reportedStatuses.ReportedStatuses);
         }
     }
 }