Example #1
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         RegulatingControl x = (RegulatingControl)obj;
         return(x.Discrete == this.Discrete && x.Mode == this.Mode && x.MonitoredPhase == this.MonitoredPhase &&
                x.TargetRange == this.TargetRange && x.TargetValue == this.TargetValue && x.Terminal == this.Terminal);
     }
     else
     {
         return(false);
     }
 }
Example #2
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         RegulatingControl x = (RegulatingControl)obj;
         return(x.discrete == this.discrete && x.mode == this.mode && x.monitoredPhase == this.monitoredPhase &&
                x.targetRange == this.targetRange && x.targetValue == this.targetValue &&
                CompareHelper.CompareLists(x.regulationSchedule, this.regulationSchedule));
     }
     else
     {
         return(false);
     }
 }