Esempio n. 1
0
        private void buttonLogin_Click(object sender, EventArgs e)
        {
            string userName = textBoxUserName.Text;
            string password = textBoxPassword.Text;

            var  user = dBUserCon.Users.Select(b => (b.UserName == userName && b.Parola == password));
            bool flag = user != null;

            //bool flag = userRep.VerifyUser(userName, password);
            //MessageBox.Show(flag.ToString());
            if (flag == true)
            {
                FormAdmin settingsForm = new FormAdmin();
                settingsForm.Show();
            }
            else
            {
                MessageBox.Show("UserName sau Parola incorecte!");
            }
        }
Esempio n. 2
0
        private void buttonMeniu_Click(object sender, EventArgs e)
        {
            FormAdmin settingsForm = new FormAdmin();

            settingsForm.Show();
        }