Esempio n. 1
0
        private void pbPlayerIcon_Click(object sender, EventArgs e)
        {
            Bitmap btm = FileRepo.ChoosePicture(lblPlayerName.Text, IsFav) ?? Resources.p5;

            pbPlayerIcon.Image = btm;
            if (IsFav)
            {
                FileRepo.FillPlayerDictionary(lblPlayerName.Text, btm, FileRepo.favPlayerPictures);
            }
            else
            {
                FileRepo.FillPlayerDictionary(lblPlayerName.Text, btm, FileRepo.playerPictures);
            }
        }