public SimulationParametersPresenter(ISimulationParametersView view, IEntitiesInSimulationRetriever entitiesInSimulationRetriever, IQuantityToSimulationParameterSelectionDTOMapper simulationParameterSelectionDTOMapper, IGroupRepository groupRepository, IParameterAnalysableParameterSelector parameterSelector) : base(view) { _entitiesInSimulationRetriever = entitiesInSimulationRetriever; _simulationParameterSelectionDTOMapper = simulationParameterSelectionDTOMapper; _groupRepository = groupRepository; _parameterSelector = parameterSelector; _parameterGroupingMode = _parameterSelector.DefaultParameterSelectionMode; }
public void LoadSettingsForSubject(IWithId subject) { _settings = _presentationSettingsTask.PresentationSettingsFor <ParameterGroupsPresenterSettings>(this, subject); _settings.DefaultParameterGroupingModeId = _userSettings.DefaultParameterGroupingMode; _parameterGroupingMode = _settings.ParameterGroupingMode; }