aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/WinClassicForms
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-03-28 12:03:14 -0600
committerGitHub <[email protected]>2017-03-28 12:03:14 -0600
commitfd1b6907708cb9464b971573cd007dcbb3f47092 (patch)
tree71b680b3a351e1e0f739cfbba23135cfb986a4cd /TimeHACK.Main/WinClassicForms
parent38c5a4310e9c0e9df874d430266649f5793ed0cf (diff)
parent023db4c64f6197e5de6b2c56c3b5b46cc9824ea3 (diff)
downloadhistacom2-fd1b6907708cb9464b971573cd007dcbb3f47092.tar.gz
histacom2-fd1b6907708cb9464b971573cd007dcbb3f47092.tar.bz2
histacom2-fd1b6907708cb9464b971573cd007dcbb3f47092.zip
Merge pull request #13 from lempamo/master
ie4 back and forward and home complete
Diffstat (limited to 'TimeHACK.Main/WinClassicForms')
-rw-r--r--TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs2
-rw-r--r--TimeHACK.Main/WinClassicForms/WinClassicIE4.cs12
2 files changed, 13 insertions, 1 deletions
diff --git a/TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs b/TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs
index 324b86a..f167732 100644
--- a/TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs
+++ b/TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs
@@ -2341,6 +2341,7 @@
this.Button5.Text = "Home";
this.Button5.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.Button5.UseVisualStyleBackColor = true;
+ this.Button5.Click += new System.EventHandler(this.Button5_Click);
//
// Button4
//
@@ -2380,6 +2381,7 @@
this.Button2.Text = "Forward";
this.Button2.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.Button2.UseVisualStyleBackColor = true;
+ this.Button2.Click += new System.EventHandler(this.Button2_Click);
//
// Button1
//
diff --git a/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs b/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs
index 055de48..61cd5a1 100644
--- a/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs
+++ b/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs
@@ -98,7 +98,7 @@ namespace TimeHACK.WinClassicForms
browsinghistory[i] = null;
}
int j = 0;
- for (int i = 0; i < browsinghistory.Count; i++)
+ for (int i = 1; i < browsinghistory.Count; i++)
{
if (browsinghistory[i] != null && browsinghistory[i] != "") j++;
}
@@ -142,5 +142,15 @@ namespace TimeHACK.WinClassicForms
historylocation--;
}
}
+
+ private void Button2_Click(object sender, EventArgs e)
+ {
+ if(browsinghistory[historylocation+1] != null) goToSite(browsinghistory[historylocation + 1], false);
+ }
+
+ private void Button5_Click(object sender, EventArgs e)
+ {
+ goToSite("www.microsoft.com/internetexplorer4/welcome", false);
+ }
}
}