Beispiel #1
0
        public void InitUserCtrl(ChatEngine.GameInfo gameInfo)
        {
            _gameInfo = gameInfo;

            lbl_GameName.Content = gameInfo.GameName;
            img_GameIcon.Source  = ImageDownloader.GetInstance().GetImage(gameInfo.Icon);

            bool bDownloaded = CheckDownloadState(_gameInfo);

            if (bDownloaded)
            {
                img_GameIcon.Opacity = 0.8;
            }
            else
            {
                img_GameIcon.Opacity         = 0.2;
                img_GamePointIcon.Visibility = Visibility.Hidden;
                img_GameCashIcon.Source      = new BitmapImage(new Uri("pack://application:,,,/Resources;component/image/Download-icon.png", UriKind.RelativeOrAbsolute));
            }
        }