aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs
blob: 8f5de0f57195325951c9c7e9abd78d4228875674 (plain) (blame)
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
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 TempIE4()
        {
            InitializeComponent();
            browsingArea = _browsingArea;
        }

        public static void GoToPage(string url)
        {
            UserControl uc = new UserControl();

            switch (url)
            {
                case "www.google.com":
                    uc = new GoogleHome();
                    break;
                case "www.google.stanford.edu":
                    uc = new GooglePrototype();
                    break;
            }

            uc.Dock = DockStyle.Fill;
            browsingArea.Controls.Clear();
            browsingArea.Controls.Add(uc);
        }

        private void TempIE4_Load(object sender, EventArgs e)
        {
            GoToPage("www.google.com");
        }

        private void GoButton_Click(object sender, EventArgs e)
        {
            GoToPage(addressbar.Text);
        }
    }
}