Exemplo n.º 1
0
        /// <summary>
        /// Automatically binds files in the playlist and load missing info.
        /// </summary>
        public static async Task AutoBindFilesAsync()
        {
            // Auto-bind files
            EditPlaylistBusiness BindBusiness = new EditPlaylistBusiness();
            SearchSettings       BindSettings = new SearchSettings();

            BindSettings.IsInDatabase = true;
            await BindBusiness.LoadPlaylistAsync(BindSettings);

            await BindBusiness.LoadMediaInfoAsync(null);
        }
 private async void Window_Loaded(object sender, RoutedEventArgs e) {
     this.DataContext = settings;
     EditPlaylistBusiness business = new EditPlaylistBusiness();
     RatingCategoryCombo.ItemsSource = await business.GetRatingCategoriesAsync(false);
 }
 /// <summary>
 /// Automatically binds files in the playlist and load missing info.
 /// </summary>
 public static async Task AutoBindFilesAsync() {
     // Auto-bind files
     EditPlaylistBusiness BindBusiness = new EditPlaylistBusiness();
     SearchSettings BindSettings = new SearchSettings();
     BindSettings.SetCondition(FieldConditionEnum.IsInDatabase, true);
     await BindBusiness.LoadPlaylistAsync(BindSettings);
     await BindBusiness.LoadMediaInfoAsync(null);
 }