private void TournamentBut_Click(object sender, RoutedEventArgs e) { try { current_tournament.Finish(); } catch (Exception) { MessageBox.Show("This Tournament is ended", "Information", MessageBoxButton.OK, MessageBoxImage.Information); } }