Пример #1
0
        public void Undo()
        {
            if (UndoObjects.Count == 0)
            {
                return;
            }

            while (UndoObjects.Count != 0)
            {
                UndoBase lUndoObject = UndoObjects.Pop();

                if (lUndoObject == null)
                {
                    return;
                }

//				Console.WriteLine("Undo> " + lUndoObject.ToString());

                lUndoObject.Undo(Board);
            }
        }
Пример #2
0
 public void Add(UndoBase pUndoObject)
 {
     UndoObjects.Push(pUndoObject);
 }
Пример #3
0
 public void Add(UndoBase pUndoObject)
 {
     UndoObjects.Push(pUndoObject);
 }