private void RefreshData() { if (workerFiles.IsBusy) return; ShowAnimeDetails = false; IsLoading = true; btnRefresh.IsEnabled = false; AllRankings.Clear(); StatusMessage = JMMClient.Properties.Resources.Loading; RankingRefreshOptions opt = new RankingRefreshOptions() { CollectionState = (RatingCollectionState)cboCollection.SelectedIndex, WatchedState = (RatingWatchedState)cboWatched.SelectedIndex, VotedState = (RatingVotedState)cboVoted.SelectedIndex }; workerFiles.RunWorkerAsync(opt); }