예제 #1
0
 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;
 }
예제 #5
0
 public void SetHistory(LimitedStack <UndoableCommand> history, Stack <UndoableCommand> redoStack)
 {
     this.history   = history;
     this.redoStack = redoStack;
 }