示例#1
0
文件: MainApp.cs 项目: nghoang/tvkpme
        private void LoadingChannelSuccess(bool is_youtube = false)
        {
            isVideoPlaying = true;
            if (is_youtube == false)
            {
                if (last_sending_success != currentPlayingChannel.id)
                {
                    last_sending_success = currentPlayingChannel.id;
                    RequestTVKServer sv = new RequestTVKServer();
                    sv.ChannelChecked(currentPlayingChannel.id);
                    txtTitle.Text = currentPlayingChannel.name;
                }
            }
            //if (currentPlayingChannel.channel_type != "4" && currentPlayingChannel.channel_type != "1")
            //    isLoadVideo = true;
            barText.Visible = false;
            barProgress.Visible = false;
            pnStatus.Visible = false;
            pbErrorBG.Visible = false;

            txtTitle.Visible = true;
            //txtDescription.Visible = true;
            //txtDescription.Text = currentPlayingChannel.description;
            pbMinimize.Visible = true;

            if (isShownAds == false)
            {
                switch (AppConst.appType)
                {
                    case RegisterType.Ads:
                        RegisterCheck reg = new RegisterCheck();
                        if (reg.IsRegister() == false)
                        {
                            ShowAdsOnChannel();
                        }
                        break;
                    case RegisterType.Free:
                        break;
                    case RegisterType.Hours:
                        break;
                    case RegisterType.HoursDaily:
                        break;
                    case RegisterType.Trial:
                        break;
                }
            }
        }