Пример #1
0
 public Television(MainWindow window)
 {
     this._screenController = new ScreenController(window);
     this.CurrentChannelIndex = 0;
 }
Пример #2
0
 /// <summary>
 ///  pauses the media and media element
 ///  WARNING: PAUSING A CHANNEL INSTANTLY TURNS THAT INTO THE CACHE
 /// </summary>
 public Boolean pause(ScreenController.PauseReason pr)
 {
     if (!this.IsPaused)
     {
         this.IsPaused = true;
         double position = this._screenController.pause(pr);
         Channel curChannel = this.getCurrentChannel();
         this._cachedMedia = curChannel.Media;
         this._cachedMedia.CurrentTime = position;
         this._cachedMediaIndex = this._currentChannelIndex;
         // fade off the pause button
         return true;
     }
     else
     {
         return false;
     }
 }