private void btnTraineeNumOfTests_Click(object sender, RoutedEventArgs e) { try { int found = bl.getTraineeNumOfTests(HodayaY); MessageBox.Show(found.ToString()); } catch (Exception ex) { MessageBox.Show(ex.Message); } }