private void setPic(personsEnum.typeOfPerson thePerson)
        {
            switch (thePerson)
            {
            case personsEnum.typeOfPerson.nannyDelete5:
            case personsEnum.typeOfPerson.nanny1:
                updateWindowThemePicture.Source = new BitmapImage(new Uri("./ resources / badCaretakerIMG.jpg", UriKind.Relative));
                break;

            case personsEnum.typeOfPerson.motherDelete6:
            case personsEnum.typeOfPerson.mother2:
                break;

            case personsEnum.typeOfPerson.childDelete7:
            case personsEnum.typeOfPerson.child3:
                break;

            case personsEnum.typeOfPerson.contractDelete8:
            case personsEnum.typeOfPerson.contract4:

                break;

            default:    //for numbers 5-8
                break;
            }
        }
        public UpdateWindow(personsEnum.typeOfPerson thePerson)
        {
            InitializeComponent();
            TheBL = BLFactory.getBL();
            DELButton.Visibility  = Visibility.Hidden;
            slowButton.Visibility = Visibility.Hidden;
            setPic(thePerson);
            // switch

            switch (thePerson)
            {
            case personsEnum.typeOfPerson.nanny1:
                IDComboBox.ItemsSource = TheBL.getListOfNannies();
                slowButton.Content     = "Update Nanny";
                headerLabel.Content    = "double click the Nanny's ID to update";
                flag = 1;
                break;

            case personsEnum.typeOfPerson.mother2:
                IDComboBox.ItemsSource = TheBL.getListOfMothers();    //for mother obvesly
                slowButton.Content     = "Update Mother";
                headerLabel.Content    = "double click the Mother's ID to update";
                flag = 2;    //need double click and switch
                break;

            case personsEnum.typeOfPerson.child3:
                IDComboBox.ItemsSource = TheBL.getListOfChildren();
                slowButton.Content     = "Update Child";
                headerLabel.Content    = "double click the Child's ID to update";
                flag = 3;    //need double click and switch
                break;

            case personsEnum.typeOfPerson.contract4:
                IDComboBox.ItemsSource = TheBL.getListOfContracts();
                headerLabel.Content    = "double click on the Contract ID to update";
                flag = 4;    //need double click and switch
                break;

            case personsEnum.typeOfPerson.nannyDelete5:
                IDComboBox.ItemsSource = TheBL.getListOfNannies();
                DELButton.Visibility   = Visibility.Visible;
                flag = 5;
                break;

            case personsEnum.typeOfPerson.motherDelete6:
                IDComboBox.ItemsSource = TheBL.getListOfMothers();
                DELButton.Visibility   = Visibility.Visible;
                flag = 6;
                break;

            case personsEnum.typeOfPerson.childDelete7:
                IDComboBox.ItemsSource = TheBL.getListOfChildren();
                headerLabel.Content    = "click Child to delete";
                DELButton.Visibility   = Visibility.Visible;
                flag = 7;
                break;

            case personsEnum.typeOfPerson.contractDelete8:
                IDComboBox.ItemsSource = TheBL.getListOfContracts();
                DELButton.Visibility   = Visibility.Visible;
                flag = 8;
                break;
            }
        }