コード例 #1
0
        /// <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);
            }
        }
コード例 #2
0
        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);
            }
        }