private void button_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         bl.deleteContract(Convert.ToInt32(textBoxDeleteContract.Text));
         MessageBox.Show("חוזה נמחק בהצלחה");
         this.Close();
     }
     catch (Exception Ex)
     {
         MessageBox.Show(Ex.Message);
     }
 }
 private void buttonDeleteContract_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         bl.deleteContract(child.idChild);
         MessageBox.Show("חוזה נמחק בהצלחה");
         comboBoxchooseChildDelete.SelectedIndex = -1;
         comboBoxChooseMomdelete.SelectedIndex   = -1;
     }
     catch (Exception Ex)
     {
         MessageBox.Show(Ex.Message);
     }
 }