コード例 #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;
            }
        }
コード例 #2
0
 private void DetailViewLoopPressed()
 {
     selectedLevelVideo.loop = !selectedLevelVideo.loop;
     _videoDetailViewController.UpdateContent();
 }