/// <summary> /// Permanently delete a player from the team /// </summary> internal void RemovePlayer(Player player, PlayerPairings pairings) { Players.Remove(player); // Undo the players' pairings foreach (var playerPairing in PlayerPairings(player)) { pairings.UndoPlayerPairing(playerPairing); } }
public void OnDelete(PlayerPairings pairings) { // Undo the players' scores UpdateGameScore(Model.GameResult.NoneYet); // Undo the players' pairings foreach (var playerPairing in PlayerPairings()) { pairings.UndoPlayerPairing(playerPairing); } }