Exemplo n.º 1
0
        public void StartBatch()
        {
            batch = new ActionBatch();

            if (!Level.Changed)
            {
                batch.LevelWasChanged = false;
                Level.Changed         = true;
            }

            while (UndoStack.Count >= Properties.Settings.Default.UndoLimit)
            {
                UndoStack.RemoveFirst();
            }
            UndoStack.AddLast(batch);
            RedoStack.Clear();
        }
Exemplo n.º 2
0
 public void EndBatch()
 {
     batch = null;
 }