Example #1
0
 public override void Do()
 {
     for (int i = 0; i < actions.Count; i++)
     {
         DocLogger.WriteLineVerbose("DO: " + actions[i].ToString());
         actions[i].Do();
     }
 }
Example #2
0
 public override void Undo()
 {
     for (int i = actions.Count - 1; i >= 0; i--)
     {
         DocLogger.WriteLineVerbose("UNDO: " + actions[i].ToString());
         actions[i].Undo();
     }
 }
Example #3
0
        private void PerformUndo(IAtomicOperation action)
        {
            CheckNotInAction();

            DocLogger.WriteLineVerbose("Undo: " + action.ToString());

            try
            {
                currentlyInAction = true;

                action.Undo();
            }
            finally
            {
                currentlyInAction = false;
            }
        }