aboutsummaryrefslogtreecommitdiff
path: root/Histacom2/OS/Win95/Win95Apps/WinClassicFTPClient.cs
blob: bc28c3a36b8d5de81ef651b3a8128a60069847cd (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
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
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 Histacom2.Engine;
using Histacom2.GlobalPrograms;

namespace Histacom2.OS.Win95.Win95Apps
{
    public partial class WinClassicFTPClient : UserControl
    {
        public WinClassicFTPClient()
        {
            InitializeComponent();
        }


        private void button1_Click(object sender, EventArgs e)
        {
            if (hostnameBox.Text == "172.68.119.42")
            {
                infoLabel.Hide();
                if (usernameBox.Text == "12padams")
                {
                    infoLabel.Hide();
                    if (passBox.Text == "projectDeath98")
                    {
                        infoLabel.Hide();
                        infoLabel.ForeColor = Color.Green;
                        infoLabel.Text = "[200] OK";
                        welcomeLabel.Hide();
                        infoLabel.Show();
                        ftpFiles.Show();
                    }
                    else
                    {
                        infoLabel.Text = "[430] Incorrect Password";
                        infoLabel.Show();
                    }
                }
                else
                {
                    infoLabel.Text = "[430] Incorrect Username";
                    infoLabel.Show();
                }
            }
            else
            {
                infoLabel.Text = "[404] Not Found";
                infoLabel.Show();
            }
        }


        private void btnCancel_Click(object sender, EventArgs e)
        {
            ParentForm.Close();
        }

        private void WinClassicFTPClient_Load(object sender, EventArgs e)
        {
            
        }

        private void topBar_Paint(object sender, PaintEventArgs e)
        {
            topBar.BackColor = SaveSystem.currentTheme.threeDObjectsColor;
        }

        private void ftpFiles_DoubleClick(object sender, EventArgs e)
        {
            Point objDrawingPoint = ftpFiles.PointToClient(Cursor.Position);
            ListViewItem objListViewItem = new ListViewItem();
            if (objDrawingPoint != null)
            {
                objListViewItem = ftpFiles.GetItemAt(objDrawingPoint.X, objDrawingPoint.Y);
                if (objListViewItem.Text == "/software/")
                {
                    ftpFiles.Clear();
                    ListViewItem listViewItem1 = new ListViewItem(new string[] { "/downloads/" }, 0, Color.Black, Color.Empty, null);
                    ListViewItem listViewItem2 = new ListViewItem(new string[] { "skindows.html" }, 1, Color.Black, Color.Empty, null);
                    ftpFiles.Items.AddRange(new ListViewItem[] { listViewItem1, listViewItem2 });
                }
                else if (objListViewItem.Text == "/downloads/")
                {
                    ftpFiles.Clear();
                    ListViewItem listViewItem1 = new ListViewItem(new string[] { "/totallynotthetimedistorter/" }, 0, Color.Black, Color.Empty, null);
                    ListViewItem listViewItem2 = new ListViewItem(new string[] { "FTP Client Setup.exe" }, 2, Color.Black, Color.Empty, null);
                    ListViewItem listViewItem3 = new ListViewItem(new string[] { "Web Chat Setup.exe" }, 2, Color.Black, Color.Empty, null);
                    ListViewItem listViewItem4 = new ListViewItem(new string[] { "Guess The Number V1 Setup.exe" }, 2, Color.Black, Color.Empty, null);
                    ftpFiles.Items.AddRange(new ListViewItem[] { listViewItem1, listViewItem2, listViewItem3, listViewItem4 });
                }
                else if (objListViewItem.Text == "/totallynotthetimedistorter/")
                {
                    ftpFiles.Clear();
                    ListViewItem listViewItem1 = new ListViewItem(new string[] { "Time Distorter Setup.exe" }, 2, Color.Black, Color.Empty, null);
                    ftpFiles.Items.AddRange(new ListViewItem[] { listViewItem1 });
                }
                else if (objListViewItem.Text == "FTP Client Setup.exe")
                {
                    WinClassicDownloader opendownload = new WinClassicDownloader();
                    WindowManager wm = new WindowManager();
                    wm.Init(opendownload, "Downloader", null, false, true);
                    opendownload.appName.Text = "Downloading: FTP Client";
                }
                else if (objListViewItem.Text == "Web Chat Setup.exe")
                {
                    WinClassicDownloader opendownload = new WinClassicDownloader();
                    WindowManager wm = new WindowManager();
                    wm.Init(opendownload, "Downloader", null, false, true);
                    opendownload.appName.Text = "Downloading: Web Chat 1998";
                    opendownload.amountToDL = 35;
                }
                else if (objListViewItem.Text == "Time Distorter Setup.exe")
                {
                    WinClassicDownloader opendownload = new WinClassicDownloader();
                    WindowManager wm = new WindowManager();
                    wm.Init(opendownload, "Downloader", null, false, true);
                    opendownload.appName.Text = "Downloading: Time Distorter 0.1";
                }
                else if (objListViewItem.Text == "Guess The Number V1 Setup.exe")
                {
                    WinClassicDownloader opendownload = new WinClassicDownloader();
                    WindowManager wm = new WindowManager();
                    wm.Init(opendownload, "Downloader", null, false, true);
                    opendownload.appName.Text = "Downloading: Guess The Number V1";
                    opendownload.amountToDL = 16;
                }
            }
        }
    }
}