From 6ad331d70733a8d0cfc6535c7e71e4f8bbf4da47 Mon Sep 17 00:00:00 2001 From: lempamo Date: Tue, 28 Mar 2017 14:50:26 -0400 Subject: web chat downloader --- .vs/TimeHACK/v14/.suo | Bin 122368 -> 122368 bytes .../WinClassicForms/WinClassicIE4.Designer.cs | 1 + TimeHACK.Main/WinClassicForms/WinClassicIE4.cs | 13 ++++++++++++- TimeHACK.Main/Windows95.cs | 2 ++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.vs/TimeHACK/v14/.suo b/.vs/TimeHACK/v14/.suo index 9b524f3..5cf99a8 100644 Binary files a/.vs/TimeHACK/v14/.suo and b/.vs/TimeHACK/v14/.suo differ diff --git a/TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs b/TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs index f167732..1445e04 100644 --- a/TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs +++ b/TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs @@ -631,6 +631,7 @@ this.Button25.TabIndex = 6; this.Button25.Text = "Download"; this.Button25.UseVisualStyleBackColor = false; + this.Button25.Click += new System.EventHandler(this.Button25_Click); // // Label43 // diff --git a/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs b/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs index 61cd5a1..1f10c34 100644 --- a/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs +++ b/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs @@ -1,7 +1,9 @@ using System; using System.Collections.Generic; +using System.Drawing; using System.Runtime.InteropServices; using System.Windows.Forms; +using TimeHACK.Engine; namespace TimeHACK.WinClassicForms { @@ -137,7 +139,8 @@ namespace TimeHACK.WinClassicForms private void Button1_Click(object sender, EventArgs e) { - if (!(historylocation <= 0)) { + if (!(historylocation <= 0)) + { goToSite(browsinghistory[historylocation - 1], true); historylocation--; } @@ -152,5 +155,13 @@ namespace TimeHACK.WinClassicForms { goToSite("www.microsoft.com/internetexplorer4/welcome", false); } + + private void Button25_Click(object sender, EventArgs e) + { + WinClassicDownloader opendownload = new WinClassicDownloader(); + WindowManager wm = new WindowManager(); + wm.startWinClassic(opendownload, "Downloader", null, false, true, new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)))); + opendownload.appName.Text = "Downloading: Web Chat"; + } } } diff --git a/TimeHACK.Main/Windows95.cs b/TimeHACK.Main/Windows95.cs index f062b7e..fb0d0ca 100644 --- a/TimeHACK.Main/Windows95.cs +++ b/TimeHACK.Main/Windows95.cs @@ -13,6 +13,8 @@ namespace TimeHACK private SoundPlayer startsound; private SoundPlayer stopsound; + public bool webchatInstalled = false; + // Init the form public Windows95() { -- cgit v1.2.3