예제 #1
0
 private void convertIndividualSimulationSettings(IndividualSimulation simulation)
 {
     _simulationPersistableUpdater.ResetPersistable(simulation);
     foreach (var observer in simulation.All <IObserver>().Where(x => x.Persistable))
     {
         simulation.OutputSelections.AddOutput(new QuantitySelection(_entityPathResolver.PathFor(observer), observer.QuantityType));
     }
 }
예제 #2
0
      public OutputSelections CreateSettings(TSimulation simulation)
      {
         _simulation = simulation;
         setupSelectionPresenter();
         _editedOutputSelections = DefaultSettingsFrom(simulation);
         _simulationPersistableUpdater.ResetPersistable(_simulation);
         _quantitySelectionPresenter.Edit(_simulation.Model.Root, _editedOutputSelections.AllOutputs);

         RefreshView();
         _view.Display();
         if (_view.Canceled)
            return null;

         updateSettingsFromSelection();
         return _editedOutputSelections;
      }