private void Login()
        {
            if (dta_GuardianList.SelectedItem == null)
            {
                WPFMessageBox.Show("Please select a guardian.");
                return;
            }
            ChildLogin ChildLoginWindow = new ChildLogin(this.guardianID);

            ChildLoginWindow.WindowState = WindowState.Maximized;
            ChildLoginWindow.Show();
            this.Close();
        }
        private void GuardianLogin()
        {
            string ID        = txt_IDEntry.Text;
            string PIN       = txt_PINEntry.Password;
            string hashedPIN = ChildcareApplication.AdminTools.Hashing.HashPass(PIN);
            bool   userFound = this.db.ValidateGuardianLogin(ID, hashedPIN);

            if (userFound)
            {
                ChildLogin ChildLoginWindow = new ChildLogin(ID);
                ChildLoginWindow.Show();
                ChildLoginWindow.WindowState = WindowState.Maximized;
                this.Close();
            }
            else
            {
                WPFMessageBox.Show("User ID or PIN does not exist");
            }
        }
        public void Search()
        {
            GuardianInfoDB parentDB = new GuardianInfoDB();

            CleanDisplay();
            if (String.IsNullOrWhiteSpace(txt_SearchBox.Text))
            {
                WPFMessageBox.Show("Please enter a name or ID.");
                return;
            }
            int  n;
            bool isNumeric = int.TryParse(txt_SearchBox.Text, out n);

            if (isNumeric)
            {
                bool validated = parentDB.ValidateGuardianID(txt_SearchBox.Text);
                if (validated)
                {
                    ChildLogin ChildLoginWindow = new ChildLogin(txt_SearchBox.Text);
                    ChildLoginWindow.Show();
                    ChildLoginWindow.WindowState = WindowState.Maximized;
                    this.Close();
                }
                else
                {
                    WPFMessageBox.Show("No search results found");
                }
            }
            else
            {
                DataTable guardianInfo = parentDB.RetieveGuardiansByLastName(txt_SearchBox.Text);
                if (guardianInfo == null || guardianInfo.Rows.Count == 0)
                {
                    WPFMessageBox.Show("No search results found");
                    return;
                }
                dta_GuardianList.ItemsSource = guardianInfo.DefaultView;
            }
        }