Пример #1
0
        private void DetailViewDownloadDeletePressed()
        {
            switch (selectedLevelVideo.downloadState)
            {
            case DownloadState.Downloaded:
                VideoLoader.Instance.DeleteVideo(selectedLevelVideo);
                selectedLevelVideo = null;
                _videoDetailViewController.SetContent(null);
                _videoDetailViewController.UpdateContent();
                return;

            case DownloadState.Downloading:
            case DownloadState.Queued:
                YouTubeDownloader.Instance.DequeueVideo(selectedLevelVideo);
                return;

            case DownloadState.NotDownloaded:
            case DownloadState.Cancelled:
                QueueDownload(selectedLevelVideo);
                return;
            }
        }
 private void DetailViewLoopPressed()
 {
     selectedLevelVideo.loop = !selectedLevelVideo.loop;
     _videoDetailViewController.UpdateContent();
 }