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