Ejemplo n.º 1
0
        internal static void ExecuteAction(HistoryAction action)
        {
            lock (Service.Locker)
            {
                Service._redoStack.Clear();
                Service._undoStack.Push(action);

                action.Execute();
                ActionExecuted?.Invoke(action);

                if (DebugSettings.LogHistoryActions)
                {
                    Service.Logger.Trace($"HistoryService: action pushed");
                }
            }
        }