private void btnSubmit_Click(object sender, RoutedEventArgs e)
 {
     WinHomeAdmin winadmin = new WinHomeAdmin();
     winadmin.Show();
     //Todo: Make this wire up to the home page, and change DBConnector.CheckLogIn so that it also returns whether or not the user is an admin.
     if (txtStaffID.Text != string.Empty && connector.CheckLogIn(txtStaffID.Text) >= 0)
     {
         Testing test = new Testing();
         test.Show();
         this.Close();
     }
     else if (connector.CheckLogIn(txtStaffID.Text) <= 0)
     {
         MessageBox.Show("Unable to connect to Database. Contact your administrator.");
     }
     else
     {
         MessageBox.Show("Please enter a valid Staff ID!");
     }
 }
        private void btnSubmit_Click(object sender, RoutedEventArgs e)
        {
            WinHomeAdmin winadmin = new WinHomeAdmin();

            winadmin.Show();
            //Todo: Make this wire up to the home page, and change DBConnector.CheckLogIn so that it also returns whether or not the user is an admin.
            if (txtStaffID.Text != string.Empty && connector.CheckLogIn(txtStaffID.Text) >= 0)
            {
                Testing test = new Testing();
                test.Show();
                this.Close();
            }
            else if (connector.CheckLogIn(txtStaffID.Text) <= 0)
            {
                MessageBox.Show("Unable to connect to Database. Contact your administrator.");
            }
            else
            {
                MessageBox.Show("Please enter a valid Staff ID!");
            }
        }