Creating a Design Apps folder
Put in card holder Moving parts into the Design Apps folder
This commit is contained in:
parent
2fcc18c332
commit
c7a6f2e8e9
21 changed files with 37 additions and 991 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue