private void loadFromIndividual(Individual individual) { _individualSettingsDTO = _individualSettingsDTOMapper.MapFrom(individual); _view.BindToSettings(_individualSettingsDTO); _view.BindToParameters(_individualSettingsDTO); _view.BindToSubPopulation(_individualSettingsDTO.SubPopulation); _editValueOriginPresenter.Edit(_individualSettingsDTO); updatePopulationControls(); }
public void EditCompoundParameters(IEnumerable <IParameter> compoundParameters) { _molWeightParameters = compoundParameters.Where(x => string.Equals(x.GroupName, CoreConstants.Groups.COMPOUND_MW)).ToList(); _molWeightDTO = _molWeightDTOMapper.MapFrom(_molWeightParameters); _view.BindTo(new[] { _molWeightDTO.MolWeightParameter, _molWeightDTO.HasHalogensParameter, _molWeightDTO.MolWeightEffParameter }); _editValueOriginPresenter.Edit(_molWeightDTO.MolWeightParameter); }
public void EditCompoundParameters(IEnumerable <IParameter> compoundParameters) { _compoundTypeParameters = compoundParameters.Where(x => string.Equals(x.GroupName, CoreConstants.Groups.COMPOUND_PKA)).ToList(); _parameterCache = new PathCache <IParameter>(_entityPathResolver).For(_compoundTypeParameters); _compoundTypeDTO = _dtoMapper.MapFrom(_compoundTypeParameters); _view.BindTo(_compoundTypeDTO.AllTypePKas); _editValueOriginPresenter.Edit(_compoundTypeParameters.FirstOrDefault()); }