private void button_Click(object sender, RoutedEventArgs e) { try { bl.deleteChild(int.Parse(textBox.Text)); } catch (Exception Ex) { MessageBox.Show(Ex.Message); } }
private void buttonDeleteChild_Click(object sender, RoutedEventArgs e) { try { bl.deleteChild(Convert.ToInt64(comboBoxChild.SelectedValue)); MessageBox.Show("הילד/ה נמחק/ה בהצלחה"); comboBoxChild.SelectedIndex = -1; comboBoxMomDelete.SelectedIndex = -1; } catch (Exception Ex) { MessageBox.Show(Ex.Message); } }