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