Example #1
0
 public GenericUndoAction(SimpleUndoPair undoredo, string description)
 {
     m_undo           = undoredo.Undo;
     m_redo           = undoredo.Redo;
     m_description    = description;
     m_logDescription = description;
 }
Example #2
0
        public void Change(SimpleUndoPair actions, string description)
        {
            var action = new GenericUndoAction(new SimpleUndoPair
            {
                Redo = () => { actions.Redo(); Modified.Execute(); },
                Undo = () => { actions.Undo(); Modified.Execute(); }
            }, description);

            action.Redo();
            m_undoQueue.Queue(action);
        }