Save size of window and position of window at close. Oops. Had removed that on accident.
This commit is contained in:
parent
b62155c76e
commit
e725a88bb1
@ -1434,6 +1434,14 @@ namespace EduNetworkBuilder
|
|||||||
private void BuilderWindow_FormClosing(object sender, FormClosingEventArgs e)
|
private void BuilderWindow_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
{
|
{
|
||||||
//The values in the settings are all up-to-date. Just tell them to save.
|
//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());
|
OurSettings.Save(NB.IsRunningOnMono());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user