Exemplo n.º 1
0
        public void Do(IPixelCommand command)
        {
            if(RedoList.Count > 0)
            {
                RedoList.Clear();
            }

            command.Do();
            UndoList.Push(command);
        }
Exemplo n.º 2
0
        public void Do(IPixelCommand command)
        {
            if (RedoList.Count > 0)
            {
                RedoList.Clear();
            }

            command.Do();
            UndoList.Push(command);
        }