private void pictureBox1_Click(object sender, EventArgs e)
        {
            HR_Dashbard hd = new HR_Dashbard();

            this.Close();
            hd.Show();
        }
Esempio n. 2
0
        private void login_Click(object sender, EventArgs e)
        {
            var user = textBox1.Text;
            var pass = password.Text;

            if (user == "admin" && pass == "admin")
            {
                MessageBox.Show("Successfully logged in");
                HR_Dashbard hr = new HR_Dashbard();
                this.Close();
                hr.Show();
            }
            else
            {
                MessageBox.Show("Invalid credentials");
            }
        }