private async void btnReadItunesRating_Click(object sender, RoutedEventArgs e) { EnableButtons(false); dgVisible.DataContext = _sourceSonglist = await RatingConnector.ItunesRatingSet(_sourceSonglist, _myiTunes, cancelSource.Token, progress); EnableButtons(true); }
private async void WriteRating(bool ToiTunes) { EnableButtons(false); if (ToiTunes) { _sourceSonglistFull = await RatingConnector.ItunesRatingSet(dgVisible.DataContext as Dictionary <int, SongStructS>, _myiTunes, cancelSource.Token, progress); } else { _sourceSonglistFull = await RatingConnector.SetFilesRating(dgVisible.DataContext as Dictionary <int, SongStructS>, cancelSource.Token, progress); } _sourceSonglistLight = await Helper.FilterDifferenzes(_sourceSonglistFull, cancelSource.Token, progress); CbFilter.IsChecked = true; EnableButtons(true); }