private void buttonUpdateMomhour_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                bl.updateMother(mom);
                if (!bl.checkSchedule(bl.getNanny(contract.idNanny), mom))
                {
                    throw new Exception("המטפלת לא עובדת בשעות הנדרשות");
                }

                if (contract.isHour == true)
                {
                    contract.salaryPerHour = bl.getSalary(contract.idChild, contract.idNanny, true, true);
                }
                else
                {
                    contract.salaryPerHour = 0;
                }
                contract.salaryPerMonth = bl.getSalary(contract.idChild, contract.idNanny, false, true);
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.Message);
            }
        }