diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-05-19 21:01:07 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-05-19 21:01:07 +0100 |
| commit | 044d3dd3aa38f02693d1d2561a4276b2dc1bdd9a (patch) | |
| tree | 44ce55271632801b9d0d677cc275376ea0bdff59 /TimeHACK.Engine/WindowManager.cs | |
| parent | 4221dbc55084b0269c82e027b6ac56957acb9912 (diff) | |
| download | histacom2-044d3dd3aa38f02693d1d2561a4276b2dc1bdd9a.tar.gz histacom2-044d3dd3aa38f02693d1d2561a4276b2dc1bdd9a.tar.bz2 histacom2-044d3dd3aa38f02693d1d2561a4276b2dc1bdd9a.zip | |
My Address Book is done!
Diffstat (limited to 'TimeHACK.Engine/WindowManager.cs')
| -rw-r--r-- | TimeHACK.Engine/WindowManager.cs | 8 |
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; } |
