protected bool mBeingUndone; // flag to denote whether the undo method has been called public Entity() { mHistory = new ModificationHistory(this); mBeingUndone = false; }