예제 #1
0
파일: Form1.cs 프로젝트: SocoStefan/Cinema
        private void button1_Click(object sender, EventArgs e)
        {
            String username = textBox1.Text;
            String password;;

            password = c.getMd5Hash(textBox2.Text);

            if (userBLL.login(username, password) == "admin")
            {
                textBox1.Clear();
                textBox2.Clear();
                this.Hide();
                formAdmin.Show();
            }
            else
            {
                textBox1.Clear();
                textBox2.Clear();
                this.Hide();
                formAngajat.Show();
            }
        }
예제 #2
0
 private void button6_Click(object sender, EventArgs e)
 {
     this.Hide();
     formAdmin.Show();
 }