Beispiel #1
0
 public static bool CheckIfInterfaceStateChanged(InterfaceStateMsg currentState, InterfaceStateMsg newState)
 {
     //Debug.Log("CHECKING INTERFACE STATE CHANGE");
     //Debug.Log("old_state: " + currentState.ToYAMLString());
     //Debug.Log("new_state: " + newState.ToYAMLString());
     return(!(currentState.GetSystemState() == newState.GetSystemState() &&
              currentState.GetProgramID() == newState.GetProgramID() &&
              currentState.GetBlockID() == newState.GetBlockID() &&
              currentState.GetEditEnabled() == newState.GetEditEnabled() &&
              currentState.GetProgramCurrentItem().ToYAMLString().Equals(newState.GetProgramCurrentItem().ToYAMLString())));
 }