Creating a Design Apps folder

Put in card holder
Moving parts into the Design Apps folder
This commit is contained in:
Lars Brubaker 2018-02-22 18:02:45 -08:00
parent 2fcc18c332
commit c7a6f2e8e9
21 changed files with 37 additions and 991 deletions

View file

@ -113,5 +113,23 @@ namespace MatterHackers.MatterControl
return result;
}
public void SetDouble(string keyToSet, double value)
{
UserSettings.Instance.set(keyToSet, value.ToString());
}
public double GetDouble(string keyToRead, double defaultValue = 0)
{
string currentValue = UserSettings.Instance.get(keyToRead);
double result = 0;
if (!double.TryParse(currentValue, out result))
{
result = defaultValue;
UserSettings.Instance.set(keyToRead, currentValue);
}
return result;
}
}
}