public void AddAction(IRootCauseCommand command) { if (!command.Executed) { command.Execute(); } _UndoActions.Push(command); _RedoActions.Clear(); }
private void ExecuteCommand(IRootCauseCommand command) { try { CurrentProblem.AddAction(command); } catch (System.Data.SQLite.SQLiteException) { ProcessConnectionLost(); } catch (Exception) { throw; } GenerateGraph(); NotifyUndoRedo(); }