private TypePKaDTO typePKaFor(IList <IParameter> compoundParameters, string parameterPka1, string parameterCompoundType1) { var pKaParameter = compoundParameters.FindByName(parameterPka1); var compoundTypeParameter = compoundParameters.FindByName(parameterCompoundType1); var dto = new TypePKaDTO(); dto.CompoundTypeParameter = _parameterMapper.MapFrom(compoundTypeParameter, dto, x => x.CompoundTypeValue, x => x.CompoundTypeParameter); dto.PKaParameter = _parameterMapper.MapFrom(pKaParameter, dto, x => x.PKa, x => x.PKaParameter); return(dto); }
private void addTypePKaFor(CompoundTypeDTO compoundTypeDTO, IList <IParameter> compoundParameters, string parameterPka1, string parameterCompoundType1) { var pKaParameter = compoundParameters.FindByName(parameterPka1); var compoundTypeParameter = compoundParameters.FindByName(parameterCompoundType1); var typePKaDTO = new TypePKaDTO(); typePKaDTO.CompoundTypeParameter = _parameterMapper.MapFrom(compoundTypeParameter, typePKaDTO, x => x.CompoundTypeValue, x => x.CompoundTypeParameter); typePKaDTO.PKaParameter = _parameterMapper.MapFrom(pKaParameter, typePKaDTO, x => x.PKa, x => x.PKaParameter); compoundTypeDTO.AddTypePKa(typePKaDTO); }
public PKaFormatter(TypePKaDTO typePkaDTO) : base(NumericFormatterOptions.Instance) { _typePkaDTO = typePkaDTO; }
public void SetCompoundType(TypePKaDTO typePkaDTO, CompoundType newValue) { AddCommand(_parameterTask.SetCompoundType(typePkaDTO.CompoundTypeParameter.Parameter, newValue)); }
public void SetPKa(TypePKaDTO typePkaDTO, double newValue) { AddCommand(_parameterTask.SetParameterDisplayValue(typePkaDTO.PKaParameter.Parameter, newValue)); }
public void SetFavorite(TypePKaDTO typePkaDTO, bool isFavorite) { typePkaDTO.IsFavorite = isFavorite; _parameterTask.SetParameterFavorite(typePkaDTO.PKaParameter.Parameter, isFavorite); }