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