public GenericUndoAction(SimpleUndoPair undoredo, string description) { m_undo = undoredo.Undo; m_redo = undoredo.Redo; m_description = description; m_logDescription = description; }
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); }