Exemple #1
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     if (ListView.SelectedItem is Competition t)
     {
         Connection.DeleteCompetition(t.CompetitionId);
         Competitions.Remove(t);
     }
 }