Exemplo n.º 1
0
 public CommandManager()
 {
     history = new LimitedStack <UndoableCommand>(maxHistoryLength);
 }
Exemplo n.º 2
0
 public CommandManager(TextSource ts)
 {
     history                = new LimitedStack <UndoableCommand>(maxHistoryLength);
     TextSource             = ts;
     UndoRedoStackIsEnabled = true;
 }
Exemplo n.º 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;
 }
Exemplo n.º 5
0
 public void SetHistory(LimitedStack <UndoableCommand> history, Stack <UndoableCommand> redoStack)
 {
     this.history   = history;
     this.redoStack = redoStack;
 }