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