aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-03-27 19:06:58 -0600
committerGitHub <[email protected]>2017-03-27 19:06:58 -0600
commit530df3c765cecb035565ca8af891ab4ebe7b5dad (patch)
treeaff16eb1ec485c69ac4a3659f774c183fc166c38 /TimeHACK.Main/WinClassicForms/WinClassicIE4.cs
parent825fbabe6ef58175047b51b678ebaf44c7bae400 (diff)
parent228c995282793d4f95c0cea31e4623d41eb41b8b (diff)
downloadhistacom2-530df3c765cecb035565ca8af891ab4ebe7b5dad.tar.gz
histacom2-530df3c765cecb035565ca8af891ab4ebe7b5dad.tar.bz2
histacom2-530df3c765cecb035565ca8af891ab4ebe7b5dad.zip
Merge pull request #11 from lempamo/master
IE4
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--;
+ }
}
}
}