private void updateToolTips(MoleculePropertiesDTO moleculePropertiesDTO) { var toolTip = PKSimConstants.UI.ReferenceConcentrationDescription(moleculePropertiesDTO.MoleculeType); updateToolTip(layoutItemReferenceConcentration, _uxReferenceConcentration, toolTip); toolTip = PKSimConstants.UI.HalfLifeLiverDescription(moleculePropertiesDTO.MoleculeType); updateToolTip(layoutItemHalfLifeLiver, _uxHalfLifeLiver, toolTip); toolTip = PKSimConstants.UI.HalfLifeIntestineDescription(moleculePropertiesDTO.MoleculeType); updateToolTip(layoutItemHalfLifeIntestine, _uxHalfLifeIntestine, toolTip); }
public MoleculePropertiesDTO MapFrom(IndividualMolecule molecule) { var dto = new MoleculePropertiesDTO(molecule) { MoleculeType = _objectTypeResolver.TypeFor(molecule) }; dto.ReferenceConcentrationParameter = _parameterMapper.MapFrom(molecule.ReferenceConcentration, dto, x => x.ReferenceConcentration, x => x.ReferenceConcentrationParameter); dto.HalfLifeLiverParameter = _parameterMapper.MapFrom(molecule.HalfLifeLiver, dto, x => x.HalfLifeLiver, x => x.HalfLifeLiverParameter); dto.HalfLifeIntestineParameter = _parameterMapper.MapFrom(molecule.HalfLifeIntestine, dto, x => x.HalfLifeIntestine, x => x.HalfLifeIntestineParameter); return(dto); }
public void BindTo(MoleculePropertiesDTO moleculePropertiesDTO) { _screenBinder.BindToSource(moleculePropertiesDTO); AdjustHeight(); updateToolTips(moleculePropertiesDTO); }