Example #1
0
 public CommandPool(int maxCommandCount)
 {
     toRedoStack          = new Stack <ICommand>();
     toUndoDeque          = new Deque <ICommand>(maxCommandCount);
     this.maxCommandCount = maxCommandCount;
 }
Example #2
0
 public CommandPool()
 {
     toRedoStack          = new Stack <ICommand>();
     toUndoDeque          = new Deque <ICommand>();
     this.maxCommandCount = 1;
 }