public CommandManager() { history = new LimitedStack <UndoableCommand>(maxHistoryLength); }
public CommandManager(TextSource ts) { history = new LimitedStack <UndoableCommand>(maxHistoryLength); TextSource = ts; UndoRedoStackIsEnabled = true; }
public CommandManager(TextSource ts) { _history = new LimitedStack <UndoableCommand>(_maxHistoryLength); _redoStack = new Stack <UndoableCommand>(); TextSource = ts; }
public CommandManager(TextSource ts) { history = new LimitedStack <UndoableCommand>(maxHistoryLength); TextSource = ts; }
public void SetHistory(LimitedStack <UndoableCommand> history, Stack <UndoableCommand> redoStack) { this.history = history; this.redoStack = redoStack; }