Esempio n. 1
0
        private void SetPlayer(Knjiznica.Model.Player player, Matches match)
        {
            System.Drawing.Bitmap image;
            image = FileRepo.LoadPlayerPictureFromCache(player.Name, FileRepo.playerPicturesPath);

            if (image == null)
            {
                image = Properties.Resources.p5;
            }
            // pImage.Source = MainWindow.BitmapToImageSource(image);
            pNumber.Text = player.Number.ToString();
            pName.Text   = player.Name;
        }