private void button_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                //if ((bool)(SunCheck.IsChecked == true))
                //{
                //    nannyToUpdate.daysWorkNanny[0] = true;
                //    var start = SunStart.Value;
                //    var end = SunEnd.Value;
                //    nannyToUpdate.startHour[0] = Convert.ToDateTime(start);
                //    nannyToUpdate.endHour[0] = Convert.ToDateTime(end);
                //}
                //if ((bool)(MonCheck.IsChecked == true))
                //{
                //    nannyToUpdate.daysWorkNanny[1] = true;
                //    var start = MonStart.Value;
                //    var end = MonEnd.Value;
                //    nannyToUpdate.startHour[1] = Convert.ToDateTime(start);
                //    nannyToUpdate.endHour[1] = Convert.ToDateTime(end);
                //}
                //if ((bool)(TueCheck.IsChecked == true))
                //{
                //    nannyToUpdate.daysWorkNanny[2] = true;
                //    var start = TueStart.Value;
                //    var end = TueEnd.Value;
                //    nannyToUpdate.startHour[2] = Convert.ToDateTime(start);
                //    nannyToUpdate.endHour[2] = Convert.ToDateTime(end);
                //}
                //if ((bool)(WedCheck.IsChecked == true))
                //{
                //    nannyToUpdate.daysWorkNanny[3] = true;
                //    var start = WedStart.Value;
                //    var end = WedEnd.Value;
                //    nannyToUpdate.startHour[3] = Convert.ToDateTime(start);
                //    nannyToUpdate.endHour[3] = Convert.ToDateTime(end);
                //}
                //if ((bool)(ThuCheck.IsChecked == true))
                //{
                //    nannyToUpdate.daysWorkNanny[4] = true;
                //    var start = ThuStart.Value;
                //    var end = ThuEnd.Value;
                //    nannyToUpdate.startHour[4] = Convert.ToDateTime(start);
                //    nannyToUpdate.endHour[4] = Convert.ToDateTime(end);
                //}
                //if ((bool)(FriCheck.IsChecked == true))
                //{
                //    nannyToUpdate.daysWorkNanny[5] = true;
                //    var start = FriStart.Value;
                //    var end = FriEnd.Value;
                //    nannyToUpdate.startHour[5] = Convert.ToDateTime(start);
                //    nannyToUpdate.endHour[5] = Convert.ToDateTime(end);
                //}

                bl.updateNanny(nannyToUpdate);
                nannyToUpdate    = new BE.Nanny();
                this.DataContext = nannyToUpdate;
                MessageBox.Show("פרטי המטפלת עודכנו");
                this.Close();
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.Message);
            }
        }