public void CommitUndoAction(UndoSystem.Action action, bool setModified = true) { UndoSystem?.CommitAction(action); if (setModified) { Modified = true; } }
///////////////////////////////////////// public DocumentInstance(string realFileName, Resource.Instance loadedResource, string specialMode) { this.realFileName = realFileName; this.loadedResource = loadedResource; this.specialMode = specialMode; //!!!!max level undoSystem = new UndoSystem(32); undoSystem.ListOfActionsChanged += UndoSystem_ListOfActionsChanged; }