-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.cs
40 lines (35 loc) · 920 Bytes
/
login.cs
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Youtube_Media_Player
{
public partial class login : Form
{
//帳號:me
//密碼:1234
mainform Mainform;
public login(mainform m)
{
InitializeComponent();
Mainform = m;
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "me" && textBox2.Text == "1234")
{
MessageBox.Show("登入成功");
Mainform.acc = "me";
Mainform.psw = "1234";
Mainform.label10.Text = "me";
Mainform.label10.Visible = true;
Close();
}
}
}
}