private void ClearGUI() { // Recommended for identification seriesTitle.Clear(); seriesIMDB.Clear(); seriesTVDB.Clear(); seasonIndex.Clear(); episodeIndexList.Clear(); episodeAired.Clear(); // additional series infos seriesFirstAired.Clear(); seriesSummary.Clear(); seriesGenre.Clear(); seriesActors.Clear(); Certification.Clear(); Network.Clear(); seriesKeywords.Clear(); // additional episode infos episodeIMDB.Clear(); episodeTitle.Clear(); episodeSummary.Clear(); GuestStars.Clear(); Directors.Clear(); Writers.Clear(); episodeKeywords.Clear(); }
private async void TerminateAll() { try { IsBusy = true; int writerCount = Writers.Count; int readerCount = Readers.Count; await Task.WhenAll(Writers.Select( x => x.Stop()).Union( Readers.Select(x => x.Stop())).ToArray()).ConfigureAwait(false); Writers.Clear(); Readers.Clear(); Data.RecordSettingChange("Writer Count", writerCount, Writers.Count); Data.RecordSettingChange("Reader Count", readerCount, Readers.Count); } catch (Exception e) { Data.Error("MainWindow", "Failed to terminate everything.", e); } finally { IsBusy = false; _rebuildPartitionOwners = true; } }
private void ClearGUI() { // Recommended for identification Title.Clear(); IMDB_ID.Clear(); TMDB_ID.Clear(); // additional collection infos CollectionTitle.Clear(); CollectionIndex.Clear(); CollectionKeywords.Clear(); // additional movie infos ReleaseDate.Clear(); Overview.Clear(); Tagline.Clear(); Certification.Clear(); Genres.Clear(); Actors.Clear(); Directors.Clear(); Writers.Clear(); MovieKeywords.Clear(); }