aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine/WindowManager.cs
diff options
context:
space:
mode:
authorJayXKanz666 <[email protected]>2017-07-02 22:44:11 +0200
committerJayXKanz666 <[email protected]>2017-07-02 22:44:11 +0200
commit71ec75dc79e2b5632216dc801dfeaf7510e25210 (patch)
tree855e94fb60bbdaf1fbd3427ef8f46193fd22a4d7 /TimeHACK.Engine/WindowManager.cs
parent3de51a2e1b9224e8a8355e3945e458e1651821a9 (diff)
downloadhistacom2-71ec75dc79e2b5632216dc801dfeaf7510e25210.tar.gz
histacom2-71ec75dc79e2b5632216dc801dfeaf7510e25210.tar.bz2
histacom2-71ec75dc79e2b5632216dc801dfeaf7510e25210.zip
Added lots of features to WinClassicTerminal.cs
-Added CMD redirection -Added menubar that was missing -And more (look at the source :P)
Diffstat (limited to 'TimeHACK.Engine/WindowManager.cs')
-rw-r--r--TimeHACK.Engine/WindowManager.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs
index aa9d941..9e96673 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, Boolean ShowApplicationAsDialog = false)
+ public WinClassic StartWin95(UserControl content, String title, Image icon, Boolean MaxButton, Boolean MinButton, Boolean ShowApplicationAsDialog = false)
{
// Setup Window
WinClassic app = new WinClassic();
@@ -72,23 +72,24 @@ namespace TimeHACK.Engine
return app;
}
- public WinClassic startInfobox95(String title, String text, Image erroricon)
+ public WinClassic StartInfobox95(String title, String text, Image erroricon)
{
Infobox95 app = new Infobox95();
app.infoText.Text = text;
+
SoundPlayer sp = new SoundPlayer(Properties.Resources.CHORD);
sp.Play();
- return startWin95(app, title, null, false, false);
+ return StartWin95(app, title, null, false, false);
}
- public WinClassic startAboutBox95(String shortname, String longname, Image appicon)
+ public WinClassic StartAboutBox95(String shortname, String longname, Image appicon)
{
AboutBox95 uc = new AboutBox95();
uc.pictureBox1.Image = appicon;
uc.textBox1.Text = longname + "\r\nWindows 95\r\nCopyright © 1981-1995 Microsoft Corp.";
uc.Font = new Font(pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
- return startWin95(uc, "About " + shortname, null, false, false);
+ return StartWin95(uc, "About " + shortname, null, false, false);
}
}
}