示例#1
0
        void PlayerProvider_RemovePlayerFromRound(object sender, PlayerEventArgs e)
        {
            var team = CurrentRound.Teams.Single(t => t.Players.Contains(e.Player));

            team.RemovePlayer(e.Player, Tournament.PlayerPairings);
            CurrentRound.SaveToFile();
            OnPropertyChanged("NonplayingPlayers");
        }