diff options
| author | lempamo <[email protected]> | 2017-04-24 12:34:42 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-04-24 12:34:42 -0400 |
| commit | e2834d00dedda4475205019d8842bd3c7957181e (patch) | |
| tree | dda28135ac1ec0b98eb27934e6f54c3e3947ed7d /TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs | |
| parent | 9e48a71e65b4c56eae2e7b7f6535b4b115955612 (diff) | |
| download | histacom2-e2834d00dedda4475205019d8842bd3c7957181e.tar.gz histacom2-e2834d00dedda4475205019d8842bd3c7957181e.tar.bz2 histacom2-e2834d00dedda4475205019d8842bd3c7957181e.zip | |
fixed
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs | 86 |
1 files changed, 42 insertions, 44 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs index 05ba187..751283e 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs @@ -21,7 +21,7 @@ namespace TimeHACK.OS.Win95.Win95Apps { browsinghistory.Capacity = 99; BringToFront(); - hideWebsites(); + hidePrograms(); browsinghistory.Add("www.microsoft.com/internetexplorer4/welcome"); for (int i = 0; i < 99; i++) browsinghistory.Add(null); welcomeinternetscreen.Show(); @@ -30,7 +30,7 @@ namespace TimeHACK.OS.Win95.Win95Apps foreach (Control ctrl in Panel1.Controls) ctrl.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0))); } - private void hideWebsites() + private void hidePrograms() { googlemain.Hide(); welcomeinternetscreen.Hide(); @@ -71,7 +71,7 @@ namespace TimeHACK.OS.Win95.Win95Apps private void Label20_Click(object sender, EventArgs e) { - hideWebsites(); + hidePrograms(); padamshidden.Dock = DockStyle.Fill; padamshidden.Show(); } @@ -83,7 +83,7 @@ namespace TimeHACK.OS.Win95.Win95Apps private void Button9_Click(object sender, EventArgs e) { - goToSite("www.???.com", false); + } private void ToolStripMenuItem21_Click(object sender, EventArgs e) @@ -93,69 +93,59 @@ namespace TimeHACK.OS.Win95.Win95Apps private void goToSite(string url, bool back) { - hideWebsites(); - - if (!back) - { - if (historylocation >= 98) historylocation = 79; - for (int i = historylocation + 1; i < browsinghistory.Count; i++) - { - browsinghistory[i] = null; - } - int j = 0; - for (int i = 1; i < browsinghistory.Count; i++) - { - if (browsinghistory[i] != null && browsinghistory[i] != "") j++; - } - historylocation = j; - browsinghistory[historylocation + 1] = url; - historylocation++; - } - - addressbar.Text = url; - switch (url) { case "www.google.com": - addressbar.Text = url; + hidePrograms(); googlemain.Dock = DockStyle.Fill; googlemain.Show(); break; case "www.google.stanford.edu": - addressbar.Text = url; + hidePrograms(); googleprototype.Dock = DockStyle.Fill; googleprototype.Show(); break; case "www.alpha.google.com": - addressbar.Text = url; + hidePrograms(); googlealpha.Dock = DockStyle.Fill; googlealpha.Show(); break; case "www.12padams.com": - addressbar.Text = url; + hidePrograms(); padamsmain.Dock = DockStyle.Fill; padamsmain.Show(); break; case "www.microsoft.com/internetexplorer4/welcome": - addressbar.Text = url; + hidePrograms(); welcomeinternetscreen.Dock = DockStyle.Fill; welcomeinternetscreen.Show(); break; - case "www.???.com": - addressbar.Text = url; - secretwebsite.Dock = DockStyle.Fill; - secretwebsite.Show(); - break; - case "www.12padams.com/???": - addressbar.Text = url; - padamshidden.Dock = DockStyle.Fill; - padamshidden.Show(); - break; + default: + return; + } + + if (!back) + { + if (historylocation >= 98) historylocation = 79; + for (int i = historylocation + 1; i < browsinghistory.Count; i++) + { + browsinghistory[i] = null; + } + int j = 0; + for (int i = 1; i < browsinghistory.Count; i++) + { + if (browsinghistory[i] != null && browsinghistory[i] != "") j++; + } + historylocation = j; + browsinghistory[historylocation + 1] = url; + historylocation++; } + addressbar.Text = url; + } - private void Button1_Click(object sender, EventArgs e) + private void BackButton_Click(object sender, EventArgs e) { if (!(historylocation <= 0)) { @@ -164,22 +154,30 @@ namespace TimeHACK.OS.Win95.Win95Apps } } - private void Button2_Click(object sender, EventArgs e) + private void ForwardButton_Click(object sender, EventArgs e) { if(browsinghistory[historylocation+1] != null) goToSite(browsinghistory[historylocation + 1], false); } - private void Button5_Click(object sender, EventArgs e) + private void HomeButton_Click(object sender, EventArgs e) { goToSite("www.microsoft.com/internetexplorer4/welcome", false); } - private void Button25_Click(object sender, EventArgs e) + private void WCDownloadButton_Click(object sender, EventArgs e) { WinClassicDownloader opendownload = new WinClassicDownloader(); WindowManager wm = new WindowManager(); wm.startWin95(opendownload, "Downloader", null, false, true); opendownload.appName.Text = "Downloading: Web Chat"; + } + + private void GoButton_Click(object sender, EventArgs e) + { + goToSite(addressbar.Text, false); } + + //TODO: Add more websites + //TODO: Relabel Buttons And Things } } |
