Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     this.Hide();
     formAngajat.Show();
 }