Example #1
0
 private void updateParameterDisplayUnits(string parameterName)
 {
     GlobalPKAnalysis.PKParameters(parameterName).Each(parameter =>
     {
         parameter.DisplayUnit = parameter.Dimension.Unit(_settings.GetSetting(parameterName, DisplayUnitFor(parameterName).Name));
     });
 }
Example #2
0
        private void updateParameterUnit(string parameterName)
        {
            if (!hasPKParameter(parameterName))
            {
                return;
            }

            var currentDisplayUnit = DisplayUnitFor(parameterName).Name;
            var displayUnitToUse   = _settings.GetSetting(parameterName, currentDisplayUnit);

            if (string.Equals(currentDisplayUnit, displayUnitToUse))
            {
                return;
            }

            changeUnit(parameterName, getUnit(parameterName, displayUnitToUse));
        }