Save size of window and position of window at close. Oops. Had removed that on accident.

This commit is contained in:
Tim Young 2017-06-16 13:14:17 -05:00
parent b62155c76e
commit e725a88bb1

View File

@ -1434,6 +1434,14 @@ namespace EduNetworkBuilder
private void BuilderWindow_FormClosing(object sender, FormClosingEventArgs e)
{
//The values in the settings are all up-to-date. Just tell them to save.
if (WindowState == FormWindowState.Normal)
{
OurSettings.MainWindowHeight = Height;
OurSettings.MainWindowWidth = Width;
OurSettings.MainWindowX = Location.X;
OurSettings.MainWindowY = Location.Y;
}
OurSettings.Save(NB.IsRunningOnMono());
}