aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine/WindowManager.cs
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-03-31 14:17:32 -0600
committerAShifter <[email protected]>2017-03-31 14:17:32 -0600
commit82557462d1bb0a7fb776692cd0887b00919999d8 (patch)
treed885bb0fb9b2d518058e6e0025dbf29fed0db4bb /TimeHACK.Engine/WindowManager.cs
parente2213726e627553783571fa631dd032f773f8794 (diff)
downloadhistacom2-82557462d1bb0a7fb776692cd0887b00919999d8.tar.gz
histacom2-82557462d1bb0a7fb776692cd0887b00919999d8.tar.bz2
histacom2-82557462d1bb0a7fb776692cd0887b00919999d8.zip
Added Infobox
Added an Infobox into the TimeHACK.Engine and removed extra WindowManager creations in Win95.cs also probably did some other honeyfries
Diffstat (limited to 'TimeHACK.Engine/WindowManager.cs')
-rw-r--r--TimeHACK.Engine/WindowManager.cs20
1 files changed, 15 insertions, 5 deletions
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
+}