private void openwindowActionFunction()
        {
            switch (flag)
            {
            case 1:
                //nanny
                selectedNanny = IDComboBox.SelectedItem as Nanny;
                Window addNannyWindow = new AddNannyWindow(selectedNanny);
                addNannyWindow.Show();
                this.Close();
                break;

            case 2:
                //mother
                selectedMother = IDComboBox.SelectedItem as Mother;
                Window addMotherWindow = new AddMotherWindow(selectedMother);    //make cunstruter that gets parameter update
                addMotherWindow.Show();
                this.Close();
                break;

            case 3:
                //child
                selectedChild = IDComboBox.SelectedItem as Child;
                Window updateTC = new AddChildWindow(selectedChild);
                updateTC.Show();    //so will keep this window open that means
                this.Close();
                break;

            case 4:
                selectedContract = IDComboBox.SelectedItem as Contract;
                Window addContractWindow = new AddContractWindow(selectedContract);
                addContractWindow.Show();
                this.Close();
                break;

            default:    //for numbers 5-8
                break;
            }
        }
        private void AddMother_Click(object sender, RoutedEventArgs e)
        {
            AddMotherWindow addMom = new AddMotherWindow();

            addMom.ShowDialog();
        }