aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine/WindowManager.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-05-20 09:19:29 -0400
committerGitHub <[email protected]>2017-05-20 09:19:29 -0400
commit6b6678c7667afd035ed959e2ddd56bc506d878c9 (patch)
treec20001bd412885f8c4082bec2634f4e4feb58251 /TimeHACK.Engine/WindowManager.cs
parentc4578aa476699552fbb950fd536a757be7086977 (diff)
parent516928f112a8b646d81d99693fbbcd4e5c45b6e2 (diff)
downloadhistacom2-6b6678c7667afd035ed959e2ddd56bc506d878c9.tar.gz
histacom2-6b6678c7667afd035ed959e2ddd56bc506d878c9.tar.bz2
histacom2-6b6678c7667afd035ed959e2ddd56bc506d878c9.zip
Merge pull request #1 from TimeHACKDevs/master
Merge
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;
}