示例#1
0
 public void CommitUndoAction(UndoSystem.Action action, bool setModified = true)
 {
     UndoSystem?.CommitAction(action);
     if (setModified)
     {
         Modified = true;
     }
 }
示例#2
0
        /////////////////////////////////////////

        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;
        }