private async void Window_Loaded(object sender, RoutedEventArgs e) { await SessionCore.Instance.Business.SetEditorModeAsync(true); timerChangeFilters = new DispatcherTimer(); timerChangeFilters.Interval = TimeSpan.FromSeconds(1); timerChangeFilters.Tick += timerChangeFilters_Tick; this.DataContext = MediaList.Settings; RatingCategoryCombo.ItemsSource = await MediaList.business.GetRatingCategoriesAsync(true); // Load categories list. await MediaList.LoadDataAsync(); // Auto-attach files. await MediaList.ManualLoadPlaylist(); await LoadMediaInfoAsync(); isLoaded = true; }