private void buttonUpdateContract_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (contract.isHour)
         {
             contract.salaryAgreed = contract.salaryPerHour;
         }
         else
         {
             contract.salaryAgreed = contract.salaryPerMonth;
         }
         bl.updateContract(contract);
         MessageBox.Show("חוזה עודכן בהצלחה");
         comboBoxChooseChildUpdate.SelectedIndex = -1;
         comboBoxchooseMomUPdate.SelectedIndex   = -1;
         contract = new BE.Contract();
         gridDetalisContract.DataContext = contract;
         mom = new BE.Mother();
         gridHourMom.DataContext = mom;
     }
     catch (Exception Ex)
     {
         MessageBox.Show(Ex.Message);
     }
 }