diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-05-20 09:46:20 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-05-20 09:46:20 +0100 |
| commit | b9857d7aa6ed8d9b04e43e1ccf1342a62ca25a52 (patch) | |
| tree | bbae7eed32ad4c2d1bbbd05ed127611d27dc0fb5 /TimeHACK.Engine/WindowManager.cs | |
| parent | d9fa6d11aa4889ba4538b00ef56d03da78664025 (diff) | |
| parent | ca9d46fea66dd3a0878fb11469156ab1c57c0fb0 (diff) | |
| download | histacom2-b9857d7aa6ed8d9b04e43e1ccf1342a62ca25a52.tar.gz histacom2-b9857d7aa6ed8d9b04e43e1ccf1342a62ca25a52.tar.bz2 histacom2-b9857d7aa6ed8d9b04e43e1ccf1342a62ca25a52.zip | |
Merge pull request #72 from Alex-TIMEHACK/master
Added my Address Book!
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; } |
