Example #1
0
        static State ResizeStickyNote(State previousState, ResizeStickyNoteAction action)
        {
            var stickyNoteModel = (StickyNoteModel)action.StickyNoteModel;

            stickyNoteModel.Move(action.Position);
            previousState.MarkForUpdate(UpdateFlags.GraphGeometry);
            return(previousState);
        }
Example #2
0
        static State ResizeStickyNote(State previousState, ResizeStickyNoteAction action)
        {
            var stickyNoteModel = (StickyNoteModel)action.StickyNoteModel;

            Undo.RegisterCompleteObjectUndo((Object)previousState.AssetModel, "Resize Sticky Note");
            stickyNoteModel.Move(action.Position);
            previousState.MarkForUpdate(UpdateFlags.GraphGeometry);
            return(previousState);
        }