From 2106eb8a4ee65dc15373b40202cb520959494da1 Mon Sep 17 00:00:00 2001 From: lempamo Date: Tue, 28 Mar 2017 13:34:52 -0400 Subject: forward button working --- TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs | 1 + TimeHACK.Main/WinClassicForms/WinClassicIE4.cs | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'TimeHACK.Main') diff --git a/TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs b/TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs index 324b86a..a49a493 100644 --- a/TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs +++ b/TimeHACK.Main/WinClassicForms/WinClassicIE4.Designer.cs @@ -2380,6 +2380,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 e82f4c2..a1503f4 100644 --- a/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs +++ b/TimeHACK.Main/WinClassicForms/WinClassicIE4.cs @@ -142,5 +142,10 @@ namespace TimeHACK.WinClassicForms historylocation--; } } + + private void Button2_Click(object sender, EventArgs e) + { + if(browsinghistory[historylocation+1] != null) goToSite(browsinghistory[historylocation + 1], false); + } } } -- cgit v1.2.3