diff options
| author | lempamo <[email protected]> | 2017-03-27 20:48:31 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-03-27 20:48:31 -0400 |
| commit | 228c995282793d4f95c0cea31e4623d41eb41b8b (patch) | |
| tree | aff16eb1ec485c69ac4a3659f774c183fc166c38 /TimeHACK.Main/WinClassicForms/WinClassicIE4.cs | |
| parent | 63e10152740429bd983d08f4e6ef29c126b6d4f0 (diff) | |
| download | histacom2-228c995282793d4f95c0cea31e4623d41eb41b8b.tar.gz histacom2-228c995282793d4f95c0cea31e4623d41eb41b8b.tar.bz2 histacom2-228c995282793d4f95c0cea31e4623d41eb41b8b.zip | |
IE4 improvements (ft. back button prototype!)
Diffstat (limited to 'TimeHACK.Main/WinClassicForms/WinClassicIE4.cs')
| -rw-r--r-- | TimeHACK.Main/WinClassicForms/WinClassicIE4.cs | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs b/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs index a43bb7b..83eed65 100644 --- a/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs +++ b/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Runtime.InteropServices; using System.Windows.Forms; @@ -6,6 +7,9 @@ namespace TimeHACK.WinClassicForms { public partial class WinClassicIE4 : UserControl { + public List<string> browsinghistory = new List<string>(); + public int historylocation = 0; + public WinClassicIE4() { InitializeComponent(); @@ -14,6 +18,7 @@ namespace TimeHACK.WinClassicForms { BringToFront(); hidePrograms(); + browsinghistory.Add("www.microsoft.com/internetexplorer4/welcome"); welcomeinternetscreen.Show(); welcomeinternetscreen.Dock = DockStyle.Fill; } @@ -81,21 +86,43 @@ namespace TimeHACK.WinClassicForms padamshidden.Show(); } - private void linkLabel19_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + private void Button12_Click(object sender, EventArgs e) { - hidePrograms(); - webBrowser1.Dock = DockStyle.Fill; - webBrowser1.Show(); + } - private void Button12_Click(object sender, EventArgs e) + private void Button9_Click(object sender, EventArgs e) { } - private void Button9_Click(object sender, EventArgs e) + private void ToolStripMenuItem21_Click(object sender, EventArgs e) { + this.ParentForm.Close(); + } + private void goToSite(string url, bool back) + { + hidePrograms(); + + if (!back) + { + if (historylocation >= 98) historylocation = 79; + for (int i = historylocation + 1; i < browsinghistory.Count; i++) + { + browsinghistory[i] = null; + } + } + + addressbar.Text = url; + } + + private void Button1_Click(object sender, EventArgs e) + { + if (!(historylocation <= 0)) { + goToSite(browsinghistory[historylocation - 1], true); + historylocation--; + } } } } |
