public async void MainPage_Loaded(object sender, RoutedEventArgs e) { try { if (!isLoaded) { initLanguage(); LoadingStarted(); await initApplication(); isLoaded = true; } else { ApplicationBar.IsVisible = false; LoadingStarted(); await updateEventsWithLanguage(); await updateClubsWithLanguage(); updateButtonTexts(); ApplicationBar.IsVisible = MainPagePivotView.SelectedIndex != 0; } LoadingEnd(); } catch (Exception ex) { EmsApi.Log(ex.Message); LoadingEnd(); } }