public SeleccionCoche()
 {
     this.InitializeComponent();
     ListaCoches = Carmanager.GetCars();
     selectedCar = null;
     InitializePlayerIcons();
     ImagenbandoJugador = TeamsInfo.getImagePlayerTeam();
     TituloBandoJugador = TeamsInfo.getTitlePlayerTeam();
     playerReady        = false;
 }
        private void IconosCoches_ItemClick(object sender, ItemClickEventArgs e)
        {
            ConfirmButton.Visibility = Visibility.Visible;
            if (!playerReady)
            {
                playerReady    = true;
                Player1.Source = new BitmapImage(new Uri(TeamsInfo.PlayerConnectedIcon()));
                ImagenCocheSeleccionado.Visibility      = Visibility.Visible;
                ImagenStatsCocheSeleccionado.Visibility = Visibility.Visible;
            }
            //Devolver al estado anterior el boton que estaba seleccionado
            selectedCar = (SelectableCar)e.ClickedItem;
            string aux = selectedCar.image;

            ImagenStatsCocheSeleccionado.Source = new BitmapImage(new Uri(selectedCar.statsImage));
            ImagenCocheSeleccionado.Source      = new BitmapImage(new Uri(selectedCar.previewimage));
        }