From fbdca852b1fc901db6a09fc22fd523160489f7ed Mon Sep 17 00:00:00 2001 From: lempamo Date: Sun, 9 Apr 2017 14:05:04 -0400 Subject: added notepad --- TimeHACK.Engine/WindowManager.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'TimeHACK.Engine/WindowManager.cs') diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs index d0a95c0..4c1eefe 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, PictureBox icon, Boolean MaxButton, Boolean MinButton) + public WinClassic startWin95(UserControl content, String title, Image icon, Boolean MaxButton, Boolean MinButton) { // Setup Window WinClassic app = new WinClassic(); @@ -29,12 +29,8 @@ namespace TimeHACK.Engine content.Dock = DockStyle.Fill; // Check if icon is null - if (icon == null) - { - icon = app.programIcon; - icon.Image = Engine.Properties.Resources.nullIcon; - } - app.programIcon.Image = icon.Image; + if (icon == null) app.programIcon.Image = Engine.Properties.Resources.nullIcon; + else app.programIcon.Image = icon; // Check if Max button is enabled and set proper X for Min button if (MaxButton == false) -- cgit v1.2.3