public CommandManager()
 {
     history = new LimitedStack <UndoableCommand>(maxHistoryLength);
 }
示例#2
0
 public CommandManager(TextSource ts)
 {
     history                = new LimitedStack <UndoableCommand>(maxHistoryLength);
     TextSource             = ts;
     UndoRedoStackIsEnabled = true;
 }
示例#3
0
 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;
 }