public static bool Update() { bool changeState; changeState = CheckChangeState(); // If update the status of the object, the data reflect of PersistentMemory. if (true == changeState) { PersistentMemory.Write(persistentMemoryData); } return(true); }