diff options
| author | lempamo <[email protected]> | 2017-03-31 17:47:56 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-03-31 17:47:56 -0400 |
| commit | 5ec8f66c1ad558a165cf621b405bee7cba48be0b (patch) | |
| tree | 055b21d8788a1946b60646daa5482126a4a23ec1 /TimeHACK.Engine/WindowManager.cs | |
| parent | 27419aa0dce06f9af5ee28f64aace365dcb7d816 (diff) | |
| parent | 6a489cc2dc2edf42a5509ded949357576731f658 (diff) | |
| download | histacom2-5ec8f66c1ad558a165cf621b405bee7cba48be0b.tar.gz histacom2-5ec8f66c1ad558a165cf621b405bee7cba48be0b.tar.bz2 histacom2-5ec8f66c1ad558a165cf621b405bee7cba48be0b.zip | |
Merge branch 'master' into master
Diffstat (limited to 'TimeHACK.Engine/WindowManager.cs')
| -rw-r--r-- | TimeHACK.Engine/WindowManager.cs | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs index 4a1cf4e..56abdbc 100644 --- a/TimeHACK.Engine/WindowManager.cs +++ b/TimeHACK.Engine/WindowManager.cs @@ -1,15 +1,16 @@ 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, bool MaxButton, bool MinButton) + + public WinClassic startWin95(UserControl content, String title, PictureBox icon, Boolean MaxButton, Boolean MinButton) { // Setup Window WinClassic app = new WinClassic(); @@ -30,7 +31,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 +56,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 +} |
