private void btFindAllAvailbleTestrs_Click(object sender, RoutedEventArgs e) { try { List <BE.Tester> found = bl.getAllAvailbleTestrs(DateTime.Today, DateTime.Now.Hour); foreach (BE.Tester item in found) { MessageBox.Show(item.ToString()); } ; } catch (Exception ex) { MessageBox.Show(ex.Message); } }