Beispiel #1
0
 private void historyListView_ItemClick(object sender, ItemClickEventArgs e)
 {
     var recent = e.ClickedItem as CloudDataInfo;
     if (recent != null)
     {
         var info = new PlayInfoHelp(recent.Id, recent.ProgramIndex);
         Utils.CommonUtils.DACNavagate(this.Frame, PPTVData.Entity.DACPageType.History,
             typeof(PlayPage), info);
     }
 }
Beispiel #2
0
        public PlayVodFactory(PlayInfoHelp playInfo)
        {
            _playFileType = PlayFileType.HD;
            _playInfo = playInfo;

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

            _playInfoFactory = new Play2InfoFactory();
            _playInfoFactory.HttpSucessHandler += _playInfoFactory_HttpSucceed;
            _playInfoFactory.HttpFailorTimeOut = httpHandler_HttpTimeoutorFail;
        }
Beispiel #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);
     }
 }
Beispiel #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);
     }
 }
Beispiel #5
0
 private void StartToPlay(PlayInfoHelp playInfo)
 {
     this.Frame.Navigate(typeof(PlayPage), playInfo);
 }