Пример #1
0
        public void ShowWinnerScreen(Player winner)
        {
            SoundPlayer.PlayWinSound();
            var winForm     = new WinnerForm();
            var winnerImage = libManager.GetWinnerImage();

            winForm.BackgroundImage = winnerImage?.Image;
            winForm.WinnerAvatar.BackgroundImage       = winner.Avatar;
            winForm.WinnerAvatar.BackgroundImageLayout = ImageLayout.Stretch;
            winForm.ShowDialog();
        }