aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/WinformsWindowManager.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-02 14:37:59 -0400
committerMichael <[email protected]>2017-04-02 14:37:59 -0400
commita3f3e03569e0268ddc70c699d49bc70331f60ab2 (patch)
treeeff8859336762d3e87eda05b38e46051a035261a /ShiftOS.WinForms/WinformsWindowManager.cs
parentf89cd092830a8e88bd9aaf8048c18b0dda7dea25 (diff)
downloadshiftos_thereturn-a3f3e03569e0268ddc70c699d49bc70331f60ab2.tar.gz
shiftos_thereturn-a3f3e03569e0268ddc70c699d49bc70331f60ab2.tar.bz2
shiftos_thereturn-a3f3e03569e0268ddc70c699d49bc70331f60ab2.zip
Call OnUpgrade() when upgrade installed.
Diffstat (limited to 'ShiftOS.WinForms/WinformsWindowManager.cs')
-rw-r--r--ShiftOS.WinForms/WinformsWindowManager.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/WinformsWindowManager.cs b/ShiftOS.WinForms/WinformsWindowManager.cs
index 40177be..494c572 100644
--- a/ShiftOS.WinForms/WinformsWindowManager.cs
+++ b/ShiftOS.WinForms/WinformsWindowManager.cs
@@ -197,6 +197,13 @@ namespace ShiftOS.WinForms
var wb = new WindowBorder(form as UserControl);
+ FormClosedEventHandler onClose = (o,a)=> { };
+ onClose = (o, a) =>
+ {
+ SetupWindows();
+ wb.FormClosed -= onClose;
+ };
+ wb.FormClosed += onClose;
SetupWindows();
}