Ejemplo n.º 1
0
        public static bool Redo()
        {
            if (undoneActions.Count == 0)
            {
                return(false);
            }
            IFigureAction action = undoneActions.Pop();

            action.Redo();
            doneActions.Push(action);
            return(true);
        }
Ejemplo n.º 2
0
 public static void AddAction(IFigureAction action)
 {
     doneActions.Push(action);
     undoneActions.Clear();
 }