Beispiel #1
0
 public bool IsEqualTo(DisplayState rhs)
 {
     return (rhs != null
             && ButtonItemArray.IsEqualTo(rhs.ButtonItemArray)
             && PanelItemArray.IsEqualTo(rhs.PanelItemArray)
             );
 }
Beispiel #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;
 }
Beispiel #3
0
        public DisplayState(DisplayState rhs)
        {
            int idx;
            PanelItemArray = new DisplayItemState[rhs.PanelItemArray.Length];
            for (idx = 0; idx < rhs.PanelItemArray.Length; idx++)
                PanelItemArray[idx] = new DisplayItemState(rhs.PanelItemArray[idx]);

            ButtonItemArray = new DisplayItemState[rhs.ButtonItemArray.Length];
            for (idx = 0; idx < rhs.ButtonItemArray.Length; idx++)
                ButtonItemArray[idx] = new DisplayItemState(rhs.ButtonItemArray[idx]);
        }
Beispiel #4
0
 public State()
 {
     LPMName = String.Empty;
     PDODeviceTypeStr = String.Empty;
     SelectedSettings = new SelectedSettings();
     InputsState = new InputsState();
     OutputsState = new OutputsState();
     PositionState = new PositionState();
     DisplayState = new DisplayState();
 }