private async void Update() { DateChangeable = false; Loading = Visibility.Visible; ((App)Application.Current).AppData.Load(displayDate); MyDay today = ((App)Application.Current).AppData.AllDays[displayDate]; Dictionary <string, Software> overView = today.GetOverView(); DailyTime = await GenerateSumTime(overView); OverviewChart = await GenerateChart(today.GetTimeline()); UpdateTime = LanguageHelper.InquireLocalizedWord("General_LastUpdate") + DateTime.Now.ToString("H:mm"); Overview.Clear(); foreach (OverViewItem item in await GenerateList(overView)) { Overview.Add(item); MyDeviceHelper.DoEvents(); } DateChangeable = true; Loading = Visibility.Hidden; }
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(); }