Exemple #1
0
        private void Edit_Info_Click(object sender, RoutedEventArgs e)
        {
            FillOut fill = new FillOut();

            fill.Show();
            this.Close();
        }
        private void LogIn_Click(object sender, RoutedEventArgs e)
        {
            string hashedPassword = Hashing.HashPassword(Password.Password);

            if (DBConnection.verifiedLogIn(Username.Text, hashedPassword))
            {
                LogInInformation.Username = Username.Text;
                if (DBConnection.verifiedAccountType(Username.Text))
                {
                    Admin_MainMenu adminMainMenu = new Admin_MainMenu();
                    adminMainMenu.Show();
                    this.Close();
                }
                else
                {
                    FillOut fillOut = new FillOut();
                    fillOut.Show();
                    this.Close();
                }
            }
            else
            {
                VerifyInfo.Content = "Your username or password is incorrect";
            }
        }