diff options
| author | jtsshieh <[email protected]> | 2017-08-03 07:57:11 -0400 |
|---|---|---|
| committer | jtsshieh <[email protected]> | 2017-08-03 07:57:11 -0400 |
| commit | d51d7d3a8e91b3e7c10f4e6b9dcb5526d20e2a09 (patch) | |
| tree | a3f42437f5eebab302d084abed06a73a0e175247 /TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs | |
| parent | 9ba27fb843bdd47304e8760e43ff8927d0a60796 (diff) | |
| parent | 2029bbc59969fd4554022bc23dd6a88a2adc6d19 (diff) | |
| download | histacom2-d51d7d3a8e91b3e7c10f4e6b9dcb5526d20e2a09.tar.gz histacom2-d51d7d3a8e91b3e7c10f4e6b9dcb5526d20e2a09.tar.bz2 histacom2-d51d7d3a8e91b3e7c10f4e6b9dcb5526d20e2a09.zip | |
Merge branch 'master' of https://github.com/jtsshieh/TimeHACK
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs b/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs deleted file mode 100644 index d41add1..0000000 --- a/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Data; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using TimeHACK.OS.Win95.Win95Apps.IE4Sites; - -namespace TimeHACK.OS.Win95.Win95Apps -{ - public partial class TempIE4 : UserControl - { - public static Panel browsingArea = new Panel(); - public static ComboBox addressbar = new ComboBox(); - - public TempIE4() - { - InitializeComponent(); - browsingArea = _browsingArea; - addressbar = _addressbar; - } - - public static async void GoToPage(string url) - { - UserControl uc = new UserControl(); - - switch (url) - { - case "www.microsoft.com/windows/ie/default.htm": - uc = new IE4Start(); - break; - case "www.google.com": - uc = new GoogleHome(); - break; - case "www.google.stanford.edu": - uc = new GooglePrototype(); - break; - default: - uc = new IE4NoPage(); - break; - } - - addressbar.Text = url; - uc.Dock = DockStyle.Fill; - - await Task.Delay(new Random().Next(500, 1500)); - - browsingArea.Controls.Clear(); - browsingArea.Controls.Add(uc); - } - - private void TempIE4_Load(object sender, EventArgs e) - { - GoToPage("www.microsoft.com/windows/ie/default.htm"); - GoButton.Paint += (s, args) => Engine.Paintbrush.PaintClassicBorders(s, args, 2); - } - - private void GoButton_Click(object sender, EventArgs e) - { - GoToPage(addressbar.Text); - } - - private void _addressbar_KeyDown(object sender, KeyEventArgs e) - { - if (e.KeyCode == Keys.Enter) - { - GoButton_Click(this, new EventArgs()); - e.SuppressKeyPress = true; - browsingArea.Focus(); - } - } - } -} |
