private void btnAddTester_Click(object sender, RoutedEventArgs e) { try { bl.addTester(Tamar); MessageBox.Show("You have successfully added a tester"); } catch (Exception ex) { MessageBox.Show(ex.Message); } }