1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using TimeHACK.Engine;
using TimeHACK.Engine.Template;
namespace TimeHACK.OS.Win95.Win95Apps
{
public partial class WinClassicIE4 : UserControl
{
public List<string> browsinghistory = new List<string>();
public int historylocation = 0;
public WinClassicIE4()
{
InitializeComponent();
}
private void WinClassicIE4_Load(object sender, EventArgs e)
{
browsinghistory.Capacity = 99;
BringToFront();
hidePrograms();
browsinghistory.Add("www.microsoft.com/internetexplorer4/welcome");
for (int i = 0; i < 99; i++) browsinghistory.Add(null);
foreach (ToolStripMenuItem item in MenuStrip3.Items) item.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
foreach (Control ctrl in Panel1.Controls) ctrl.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
}
private void hidePrograms()
{
googlemain.Hide();
googleprototype.Hide();
googlealpha.Hide();
padamsmain.Hide();
hotmailmain.Hide();
padamsbackgrounds.Hide();
skindows95advertisment.Hide();
secretwebsite.Hide();
padamshidden.Hide();
email1.Hide();
email2.Hide();
email3.Hide();
hotmailpadams.Hide();
}
private void goToSite(string url, bool back)
{
switch (url)
{
case "www.google.com":
hidePrograms();
break;
case "www.google.stanford.edu":
hidePrograms();
break;
case "www.alpha.google.com":
hidePrograms();
googlealpha.Dock = DockStyle.Fill;
googlealpha.Show();
break;
case "www.12padams.com":
Story.Hack1 startStory = new Story.Hack1();
startStory.startObjective();
hidePrograms();
break;
case "www.microsoft.com/internetexplorer4/welcome":
hidePrograms();
break;
case "www.???.com":
hidePrograms();
secretwebsite.Dock = DockStyle.Fill;
secretwebsite.Show();
break;
case "www.12padams.com/???":
hidePrograms();
padamshidden.Dock = DockStyle.Fill;
padamshidden.Show();
break;
default:
return;
}
if (!back)
{
if (historylocation >= 98) historylocation = 79;
for (int i = historylocation + 1; i < browsinghistory.Count; i++)
{
browsinghistory[i] = null;
}
int j = 0;
for (int i = 1; i < browsinghistory.Count; i++)
{
if (browsinghistory[i] != null && browsinghistory[i] != "") j++;
}
historylocation = j;
browsinghistory[historylocation + 1] = url;
historylocation++;
}
addressbar.Text = url;
}
private void BackButton_Click(object sender, EventArgs e)
{
if (!(historylocation <= 0))
{
goToSite(browsinghistory[historylocation - 1], true);
historylocation--;
}
}
private void ForwardButton_Click(object sender, EventArgs e)
{
if(browsinghistory[historylocation+1] != null) goToSite(browsinghistory[historylocation + 1], false);
}
private void HomeButton_Click(object sender, EventArgs e)
{
goToSite("www.microsoft.com/internetexplorer4/welcome", false);
}
private void WCDownloadButton_Click(object sender, HtmlElementEventArgs e)
{
WinClassicDownloader opendownload = new WinClassicDownloader();
WindowManager wm = new WindowManager();
wm.startWin95(opendownload, "Downloader", null, false, true);
opendownload.appName.Text = "Downloading: Web Chat";
}
private void GoButton_Click(object sender, EventArgs e)
{
goToSite(addressbar.Text, false);
}
//TODO: Add more websites
//TODO: Relabel Buttons And Things
}
}
|