private void button_Click(object sender, RoutedEventArgs e) { try { bl.deleteMother(int.Parse(textBox.Text)); } catch (Exception Ex) { MessageBox.Show(Ex.Message); } }
private void deleteButton_Click(object sender, RoutedEventArgs e) { try { bl.deleteMother(mother.IdMom); MessageBox.Show("אם נמחקה מהמערכת"); deleteMomCombo.SelectedIndex = -1; } catch (Exception Ex) { MessageBox.Show(Ex.Message); } }