aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine/WindowManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TimeHACK.Engine/WindowManager.cs')
-rw-r--r--TimeHACK.Engine/WindowManager.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs
index 6bb7cc5..2d5ef8a 100644
--- a/TimeHACK.Engine/WindowManager.cs
+++ b/TimeHACK.Engine/WindowManager.cs
@@ -10,7 +10,7 @@ namespace TimeHACK.Engine
{
public static System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection();
- public WinClassic startWin95(UserControl content, String title, Image icon, Boolean MaxButton, Boolean MinButton)
+ public WinClassic startWin95(UserControl content, String title, Image icon, Boolean MaxButton, Boolean MinButton, Boolean ShowApplicationAsDialog = false)
{
// Setup Window
WinClassic app = new WinClassic();
@@ -64,13 +64,11 @@ namespace TimeHACK.Engine
// Set some values (for the taskbar)
app.Tag = TaskBarController.AvalibleApplicationID;
- app.Text = title;
+ app.Text = title;
// Show the app
- app.Show();
- app.BringToFront();
app.TopMost = true;
-
+ if (ShowApplicationAsDialog == false) { app.Show(); } else { app.ShowDialog(); }
return app;
}