Made the wide screen mode switching to and from viewing the slice settings much clearer.

Made the visible panels settings save.
Tried to make the panel changing and the single slide more similar.
This commit is contained in:
larsbrubaker 2014-12-15 14:04:27 -08:00
parent a6493af42a
commit b0f5c1105d
5 changed files with 108 additions and 78 deletions

View file

@ -78,5 +78,44 @@ namespace MatterHackers.MatterControl
}
}
}
public bool ThirdPannelVisible
{
get
{
string currentValue = UserSettings.Instance.get("ThirdPannelVisible");
if (acceptableTrueFalseValues.IndexOf(currentValue) == -1)
{
if (OemSettings.Instance.UseSimpleModeByDefault)
{
currentValue = "true";
}
else
{
currentValue = "false";
}
UserSettings.Instance.set("ThirdPannelVisible", currentValue);
}
if (currentValue == "true")
{
return true;
}
return false;
}
set
{
if (value)
{
UserSettings.Instance.set("ThirdPannelVisible", "true");
}
else
{
UserSettings.Instance.set("ThirdPannelVisible", "false");
}
}
}
}
}