More work on print resuming.

This commit is contained in:
Lars Brubaker 2016-04-19 11:24:09 -07:00
parent 9d233efb4c
commit f20ac4dcb5
6 changed files with 124 additions and 36 deletions

View file

@ -161,6 +161,17 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
}
}
public double GetActiveValueAsDouble(string keyToLookUp, double valueOnError)
{
double foundValue;
if (!double.TryParse(GetActiveValue(keyToLookUp), out foundValue))
{
return valueOnError;
}
return foundValue;
}
public string GetMaterialValue(string sliceSetting, int extruderNumber1Based)
{
int numberOfActiveLayers = activeSettingsLayers.Count;