From 044d3dd3aa38f02693d1d2561a4276b2dc1bdd9a Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Fri, 19 May 2017 21:01:07 +0100 Subject: My Address Book is done! --- TimeHACK.Engine/WindowManager.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'TimeHACK.Engine/WindowManager.cs') 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; } -- cgit v1.2.3