private void ConnectionManagerOnPlayerLeft(object sender, PlayerLeftEventArgs playerLeftEventArgs)
 {
     var player = _players.FirstOrDefault(p => playerLeftEventArgs.Player != null && p.Name == playerLeftEventArgs.Player.Name);
     if (player != null)
     {
         _players.Remove(player);
         RaisePropertyChanged("_players");
     }
 }
Beispiel #2
0
        private void ConnectionManagerOnPlayerLeft(object sender, PlayerLeftEventArgs playerLeftEventArgs)
        {
            var player = _players.FirstOrDefault(p => playerLeftEventArgs.Player != null && p.Name == playerLeftEventArgs.Player.Name);

            if (player != null)
            {
                _players.Remove(player);
                RaisePropertyChanged("_players");
            }
        }