private void updateParameterDisplayUnits(string parameterName) { GlobalPKAnalysis.PKParameters(parameterName).Each(parameter => { parameter.DisplayUnit = parameter.Dimension.Unit(_settings.GetSetting(parameterName, DisplayUnitFor(parameterName).Name)); }); }
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)); }