示例#1
0
 public bool IsEqualTo(State rhs)
 {
     return (PersistedVersionSequenceNumber == rhs.PersistedVersionSequenceNumber
             && LPMName == rhs.LPMName
             && Config.IsEqualTo(rhs.Config)
             && PDODeviceTypeStr == rhs.PDODeviceTypeStr
             && Connected == rhs.Connected
             && SelectedSettings.IsEqualTo(rhs.SelectedSettings)
             && InputsState.IsEqualTo(rhs.InputsState)
             && OutputsState.IsEqualTo(rhs.OutputsState)
             && PositionState.IsEqualTo(rhs.PositionState)
             && DisplayState.IsEqualTo(rhs.DisplayState)
             && CycleCount == rhs.CycleCount
             && CmdRateHz == rhs.CmdRateHz
             );
 }
示例#2
0
 public State(State rhs)
 {
     PersistedVersionSequenceNumber = rhs.PersistedVersionSequenceNumber;
     LPMName = rhs.LPMName;
     Config = rhs.Config;
     PDODeviceTypeStr = rhs.PDODeviceTypeStr;
     Connected = rhs.Connected;
     SelectedSettings = new SelectedSettings(rhs.SelectedSettings);
     InputsState = new InputsState(rhs.InputsState);
     OutputsState = new OutputsState(rhs.OutputsState);
     PositionState = new PositionState(rhs.PositionState);
     DisplayState = new DisplayState(rhs.DisplayState);
     CycleCount = rhs.CycleCount;
     CmdRateHz = rhs.CmdRateHz;
 }