private void btnSearch_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         User guest = new User();
         guest.UserID           = txtUserName.Text.ToString();
         guest.SecurityQuestion = comboSecurity.Text.ToString();
         guest.SecurityAnswer   = txtAnswer.Text.ToString();
         AdminBL adminBL = new AdminBL();
         bool    result  = adminBL.ForgotPassword(guest);
         if (result == true)
         {
             MessageBox.Show("Match Found");
             UserChangePassword userChangePassword = new UserChangePassword();
             userChangePassword.Show();
         }
         else
         {
             MessageBox.Show("Failed to Change Password!", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
        private void btnChPassword_Click(object sender, RoutedEventArgs e)
        {
            this.Hide();
            UserChangePassword frm2 = new UserChangePassword();

            frm2.Show();
        }