fix windowmanager layout kink

This commit is contained in:
Michael 2017-07-02 08:49:10 -04:00
parent 9578be0998
commit 3e1af6e8cb
2 changed files with 9 additions and 4 deletions

View file

@ -231,10 +231,7 @@ namespace ShiftOS.WinForms
this.DoubleBuffered = true;
this.Left = (Screen.PrimaryScreen.Bounds.Width - this.Width) / 2;
this.Top = (Screen.PrimaryScreen.Bounds.Height - this.Height) / 2;
ParentWindow.OnLoad();
ParentWindow.OnSkinLoad();
ParentWindow.OnUpgrade();
}
/// <summary>

View file

@ -121,6 +121,10 @@ namespace ShiftOS.WinForms
wb.IsDialog = true;
Desktop.ShowWindow(wb);
form.OnLoad();
form.OnSkinLoad();
form.OnUpgrade();
}
public override void SetupWindow(IShiftOSWindow form)
@ -208,6 +212,10 @@ namespace ShiftOS.WinForms
wb.FormClosed += onClose;
Desktop.ShowWindow(wb);
SetupWindows();
form.OnLoad();
form.OnSkinLoad();
form.OnUpgrade();
}
public void SetupWindows()