Esempio n. 1
0
 private void AddError(object sender, SensorErrorCollection e)
 {
     if (e.Equals(this._errorCollection))
     {
         return;
     }
     this._errorCollection.Clear();
     this._errorCollection = e;
     this.RaiseErrorStatusChangedEvent(sender, (ErrorDetectedEventArgs) new ConcreteErrorDetectedEventArgs());
 }
Esempio n. 2
0
 public bool Equals(SensorErrorCollection compareTarget)
 {
     if (compareTarget.UserNotifyError.Count != this.UserNotifyError.Count)
     {
         return(false);
     }
     foreach (SensorError sensorError in (IEnumerable <SensorError>) this.UserNotifyError)
     {
         if (!compareTarget.UserNotifyError.Contains(sensorError))
         {
             return(false);
         }
     }
     return(true);
 }
 public unsafe ClearErrorResult(ReplyForClearError *receiveBuffer)
 {
     this.Error          = (SensorError) new ConcreteSensorError((ErrI)receiveBuffer->header.wErrorId);
     this._clearedErrors = new SensorErrorCollection(receiveBuffer->header.uOption0.dwCode, receiveBuffer->header.uOption1.dwCode, receiveBuffer->header.uOption2.dwCode, receiveBuffer->header.uOption3.dwCode);
 }