Exemplo n.º 1
0
		public UndoQueue(UndoStack stack, int numops)
		{
			if (stack == null)  {
				throw new ArgumentNullException("stack");
			}
			
			for (int i = 0; i < numops; ++i) {
				if (stack._UndoStack.Count > 0) {
					undolist.Add(stack._UndoStack.Pop());
				}
			}
		}
Exemplo n.º 2
0
 public UndoableSetCaretPosition(UndoStack stack, Point pos)
 {
     this.stack = stack;
     this.pos   = pos;
 }
Exemplo n.º 3
0
			public UndoableSetCaretPosition(UndoStack stack, Point pos)
			{
				this.stack = stack;
				this.pos = pos;
			}