private void SubmitBtn_Click(object sender, RoutedEventArgs e)
        {
            // update values of AdultConfidentialInfo object
            aci.foodStamps           = foodStampsCheck.IsChecked.ToString();
            aci.dependentChildrenAid = dependentChildrenCheck.IsChecked.ToString();
            aci.supplementaryIncome  = SSIcheck.IsChecked.ToString();
            aci.housingAssistance    = section8Check.IsChecked.ToString();
            aci.none               = noneCheck.IsChecked.ToString();
            aci.homeless           = homelessCheck.IsChecked.ToString();
            aci.agedOutFosterCare  = agedOutCheck.IsChecked.ToString();
            aci.outOfWorkforce     = workforceCheck.IsChecked.ToString();
            aci.formCompletionDate = DateTime.Now;

            // if no boxes are checked, display error message
            if (aci.foodStamps == "False" && aci.dependentChildrenAid == "False" && aci.supplementaryIncome == "False" && aci.housingAssistance == "False" && aci.none == "False")
            {
                ErrorMessage error = new ErrorMessage("Please select all that apply to your family, if none apply --- select \'None of these apply to me or my family\'");

                error.ShowDialog();

                return;
            }

            // if the 'None' box is checked, and another box is also check, error message displays
            if ((aci.foodStamps == "True" || aci.dependentChildrenAid == "True" || aci.supplementaryIncome == "True" || aci.housingAssistance == "True") && aci.none == "True")
            {
                ErrorMessage error = new ErrorMessage("You cannot select \'None apply\' and also check other boxes.");

                error.ShowDialog();

                return;
            }

            // create DataAccess variable to then save the information to the DataBase
            DataAccess db = new DataAccess();

            db.SaveACI(aci);

            // change UserControl Visibility and display success message

            Information_Page.aciuc.Visibility = Visibility.Hidden;

            Information_Page.SuccessMessageAndShutdown();
        }
        private void SubmitBtn_Click(object sender, RoutedEventArgs e)
        {
            // variable that will validate the signature field
            bool sigError = false;

            // if the signature has not been filled out, changes border color and alters value of sigError
            if (signatureCanvas.Strokes.Count == 0)
            {
                sigCanBorder.BorderBrush = Brushes.Red;
                sigError = true;
            }

            // changes signature border to base color if it has been filled out
            else
            {
                if (sigCanBorder.BorderBrush == Brushes.Red)
                {
                    sigCanBorder.BorderBrush = new SolidColorBrush(Color.FromRgb(33, 148, 243));
                }

                // sets sigError to false, as the signature has now been filled out
                sigError = false;
            }

            // byte array to hold the stroke values of the signature field
            byte[] signature;
            using (MemoryStream ms = new MemoryStream())
            {
                signatureCanvas.Strokes.Save(ms);
                signature = ms.ToArray();
            }

            // update ConfidentialInfo object to contain current values
            hsci.foodStamps           = foodStampsCheck.IsChecked.ToString();
            hsci.dependentChildrenAid = dependentChildrenCheck.IsChecked.ToString();
            hsci.supplementaryIncome  = SSIcheck.IsChecked.ToString();
            hsci.housingAssistance    = section8Check.IsChecked.ToString();
            hsci.none               = noneCheck.IsChecked.ToString();
            hsci.homeless           = homelessCheck.IsChecked.ToString();
            hsci.agedOutFosterCare  = agedOutCheck.IsChecked.ToString();
            hsci.parentsActiveDuty  = activeDutyCheck.IsChecked.ToString();
            hsci.reducedLunch       = reducedLunchCheck.IsChecked.ToString();
            hsci.parentSignature    = signature;
            hsci.formCompletionDate = DateTime.Now;

            // if no boxes are selected, display error
            if (hsci.foodStamps == "False" && hsci.dependentChildrenAid == "False" && hsci.supplementaryIncome == "False" && hsci.housingAssistance == "False" && hsci.none == "False")
            {
                ErrorMessage error = new ErrorMessage("Please select all that apply to your family, if none apply --- select \'None of these apply to me or my family\'");

                error.ShowDialog();

                return;
            }

            // if 'None' box is checked, while others are also checked, display error
            if ((hsci.foodStamps == "True" || hsci.dependentChildrenAid == "True" || hsci.supplementaryIncome == "True" || hsci.housingAssistance == "True") && hsci.none == "True")
            {
                ErrorMessage error = new ErrorMessage("You cannot select \'None apply\' and also check other boxes.");

                error.ShowDialog();

                return;
            }

            // if there was no signature error, save
            if (!sigError)
            {
                // DataAccess variable to save information to database
                DataAccess db = new DataAccess();

                db.SaveHSCI(hsci);

                // alter UC visibility
                Information_Page.hsciuc.Visibility = Visibility.Hidden;

                Information_Page.SuccessMessageAndShutdown();
            }
        }