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