aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicFTPClient.cs
blob: ab7e61fd106cb38936081cb5b5e99a83df42a0bf (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
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;

namespace TimeHACK.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();
                    }
                    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 ftpItems_Click(object sender, EventArgs e)
        {
            Point objDrawingPoint = ftpFiles.PointToClient(Cursor.Position);
            ListViewItem objListViewItem = new ListViewItem();
            if (objListViewItem.Text == "/software/")
            {

            }
        }
    }
}