Load window pos/size/state

This commit is contained in:
Sigmanor 2016-01-24 23:11:12 +02:00
parent 94dcf8c0e0
commit e1cea72396

View file

@ -318,13 +318,6 @@ private void MainWindow_Load(object sender, EventArgs e)
{
string pos = ps.WindowLocation.ToString();
if (pos != "{X=0,Y=0}")
{
this.Location = ps.WindowLocation;
}
this.Size = ps.WindowSize;
customRTB.Font = new Font(ps.RichTextFont, ps.RichTextSize);
customRTB.ForeColor = ps.RichForeColor;
customRTB.BackColor = ps.RichBackColor;
@ -364,6 +357,14 @@ private void MainWindow_Load(object sender, EventArgs e)
{
openAsotiations();
}
if (pos != "{X=0,Y=0}")
{
this.Location = ps.WindowLocation;
}
this.Size = ps.WindowSize;
this.WindowState = ps.WindowState;
}
public void DeleteUpdateFiles()