Exemplo n.º 1
0
		public void Push(UndoableAction action)
		{
			stack.Push(action);

			if (stack.Count == 1)
				RaiseIsEmptyChanged();
		}
Exemplo n.º 2
0
        public void Push(UndoableAction action)
        {
            stack.Push(action);

            if (stack.Count == 1)
            {
                RaiseIsEmptyChanged();
            }
        }
Exemplo n.º 3
0
		public void AddAction(UndoableAction action)
		{
			if (!isEnabled)
				return;

			if (state != UndoState.None)
				return;

			undoStack.Push(action);
			redoStack.Clear();
		}
Exemplo n.º 4
0
        public void AddAction(UndoableAction action)
        {
            if (!IsEnabled)
            {
                return;
            }

            if (state != UndoState.None)
            {
                return;
            }

            undoStack.Push(action);
            redoStack.Clear();
        }