コード例 #1
0
        public void Edit(IEnumerable <IParameter> parameters)
        {
            _allParameters = parameters.ToList();
            _molWeightGroupPresenter.EditCompoundParameters(_allParameters);
            _compoundTypeGroupPresenter.EditCompoundParameters(_allParameters);
            _advancedParameterPresenter.Edit(_allParameters.Where(parameterIsAdvancedParameter));
            _simpleParameterPresenter.Edit(_allParameters.Where(parameterIsSimpleParameter));

            var compoundProperties = compoundPropertiesFor(_allParameters);

            if (compoundProperties != null)
            {
                _calculationMethodsPresenter.Edit(compoundProperties);
            }
            else
            {
                hideCalculationMethodView();
            }
        }
        public void EditSimulation(Simulation simulation, Compound compound)
        {
            var compoundProperties = simulation.CompoundPropertiesFor(compound);

            _calculationMethodSelectionPresenter.Edit(compoundProperties);
        }