Exemple #1
0
 public void OnViewLoaded()
 {
     // Select first download option matching last used format or first non-audio-only download option
     SelectedDownloadOption =
         AvailableDownloadOptions.FirstOrDefault(o => o.Format == _settingsService.LastFormat) ??
         AvailableDownloadOptions.OrderByDescending(o => !string.IsNullOrWhiteSpace(o.Label)).FirstOrDefault();
 }
        protected override void OnViewLoaded()
        {
            base.OnViewLoaded();

            // Select first download option matching last used format or first non-audio-only download option
            SelectedDownloadOption =
                AvailableDownloadOptions.FirstOrDefault(o => o.Format == _settingsService.LastFormat) ??
                AvailableDownloadOptions.OrderByDescending(o => o.Label != null).FirstOrDefault();
        }
 public void OnViewLoaded()
 {
     SelectedDownloadOption =
         AvailableDownloadOptions.FirstOrDefault(o => o.Format == _settingsService.LastFormat) ??
         AvailableDownloadOptions.OrderByDescending(o => !string.IsNullOrWhiteSpace(o.Label)).FirstOrDefault();
 }