コード例 #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();
 }