aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TimeHACK.Main/WinClassicForms/WinClassicIE4.cs')
-rw-r--r--TimeHACK.Main/WinClassicForms/WinClassicIE4.cs39
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--;
+ }
}
}
}