private void SetSmoothingGroup(string values)
{
if (values == "off")
{
this.currentSmoothingGroup = 0;
}
else
{
long smoothingGroup;
if (long.TryParse(values, out smoothingGroup))
{
this.currentSmoothingGroup = smoothingGroup;
}
else
{
// invalid parameter
if (this.IgnoreErrors)
{
return;
}
throw new FileFormatException(string.Format("Invalid smoothing group ({0}) at line {1}.", values, this.currentLineNo));
}
}
}