Пример #1
0
        private void recentList_ItemClick(object sender, ItemClickEventArgs e)
        {
            var recent = e.ClickedItem as CloudDataInfo;

            if (recent != null)
            {
                var info = new PlayInfoHelp(recent.Id, recent.ProgramIndex);
                CommonUtils.DACNavagate(this.Frame, DACPageType.History, typeof(PlayPage), info);
            }
        }
Пример #2
0
        public PlayVodFactory(object parameter)
        {
            _playFileType = PlayFileType.HD;
            _playInfo     = parameter as PlayInfoHelp;

            _channelDetailFactory = new ChannelDetailFactory();
            _channelDetailFactory.HttpSucessHandler += _channelDetailFactory_HttpSucceed;
            _channelDetailFactory.HttpFailorTimeOut += httpHandler_HttpTimeoutorFail;

            _playInfoFactory = new Play2InfoFactory();
            _playInfoFactory.HttpSucessHandler += _playInfoFactory_HttpSucceed;
            _playInfoFactory.HttpFailorTimeOut  = httpHandler_HttpTimeoutorFail;
        }
Пример #3
0
 private void playButton_Click(object sender, RoutedEventArgs e)
 {
     if (_dataSource != null)
     {
         PlayInfoHelp obj;
         if (ChannelUtils.JudgeSingle(_dataSource))
         {
             obj = new PlayInfoHelp(_dataSource, -1);
         }
         else
         {
             obj = new PlayInfoHelp(_dataSource, 0);
         }
         StartToPlay(obj);
     }
 }
Пример #4
0
        private void listView_ItemClick(object sender, ItemClickEventArgs e)
        {
            var value = e.ClickedItem as ProgramInfo;

            if (value != null)
            {
                PlayInfoHelp obj;
                if (ChannelUtils.JudgeSingle(_dataSource))
                {
                    obj = new PlayInfoHelp(_dataSource, -1);
                }
                else
                {
                    var index = ChannelUtils.CreateProgramIndex(value.Index, _dataSource);
                    obj = new PlayInfoHelp(_dataSource, index);
                }
                StartToPlay(obj);
            }
        }
Пример #5
0
 private void StartToPlay(PlayInfoHelp playInfo)
 {
     this.Frame.Navigate(typeof(PlayPage), playInfo);
 }