From 82557462d1bb0a7fb776692cd0887b00919999d8 Mon Sep 17 00:00:00 2001 From: AShifter Date: Fri, 31 Mar 2017 14:17:32 -0600 Subject: Added Infobox Added an Infobox into the TimeHACK.Engine and removed extra WindowManager creations in Win95.cs also probably did some other honeyfries --- TimeHACK.Engine/WindowManager.cs | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'TimeHACK.Engine/WindowManager.cs') diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs index 193985a..2c8322f 100644 --- a/TimeHACK.Engine/WindowManager.cs +++ b/TimeHACK.Engine/WindowManager.cs @@ -1,15 +1,15 @@ using System; -using TimeHACK.Engine.Template; +using TimeHACK.Main.Template; using System.Windows.Forms; using System.Drawing; -namespace TimeHACK.Engine +namespace TimeHACK.Main { public class WindowManager { public static System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection(); - public WinClassic startWinClassic(UserControl content, String title, PictureBox icon, Boolean MaxButton, Boolean MinButton) + public WinClassic startWin95(UserControl content, String title, PictureBox icon, Boolean MaxButton, Boolean MinButton) { // Setup Window WinClassic app = new WinClassic(); @@ -30,7 +30,7 @@ namespace TimeHACK.Engine if (icon == null) { icon = app.programIcon; - icon.Image = Properties.Resources.nullIcon; + icon.Image = Engine.Properties.Resources.nullIcon; } app.programIcon.Image = icon.Image; @@ -55,5 +55,15 @@ namespace TimeHACK.Engine return app; } + + public Infobox95 startInfobox95(String title, String text) + { + Infobox95 app = new Infobox95(); + app.Title.Text = title; + app.Text = title; + app.infoText.Text = text; + app.Show(); + return app; + } } -} \ No newline at end of file +} -- cgit v1.2.3