예제 #1
0
 public void Apply(Undoable step)
 {
     redos.Clear();
     step.Apply();
     undos.Push(step);
     DiagManager.Instance.LogInfo(String.Format("Apply {0}", step));
 }
예제 #2
0
        public void Redo()
        {
            Undoable step = redos.Pop();

            step.Redo();
            undos.Push(step);
            DiagManager.Instance.LogInfo(String.Format("Redo {0}", step));
        }