private static float ConvertScalingFactor(string scalingFactor)
{
bool isParsed = false;
int percents = TryParseInt(scalingFactor);
if (percents != int.MinValue)
{
if (percents >= 10 && percents <= 10000)
isParsed = true;
}
if (!isParsed)
throw new Exception("Error! Incorrect scaling factor - " + scalingFactor + ".");
return percents / 100.0f;
}