private async Task updateClubsWithLanguage() { ClubsList.ItemsSource = null; ClubsList.IsHitTestVisible = false; EmsApi.StartTrayLoadingAnimation(); if (data.ClubsData != null) { data.ClubsData = await EmsApi.GetClubsData("", EmsLanguage); } EmsApi.SetProggressIndicatorVisibility(false); ClubsList.ItemsSource = data.ClubsData.result; ClubsList.IsHitTestVisible = true; }
private async Task initApplication() { data.ClubIdIsCheked = EmsApi.GetClubsIdIsChecked(); data.CalendarData = EmsApi.GetCalendarData(); resetCalendar(); data.ClubsData = await EmsApi.GetClubsData("", EmsLanguage); data.EventsData = await EmsApi.GetEventsInfo("", EmsLanguage); data.HomeLinks = await EmsApi.GetHomeLinks(); DataContext = data; EmsApi.prettyDisplayDates(data.EventsData.result); }
private async void ClubSelection_Loaded(object sender, RoutedEventArgs e) { if (!isInitialized) { SelectionStackPanel.IsHitTestVisible = false; SettinsCheckBoxList.IsHitTestVisible = false; EmsApi.StartTrayLoadingAnimation(); if (MainPage.data.ClubsData != null) { MainPage.data.ClubsData = await EmsApi.GetClubsData("", MainPage.EmsLanguage); } EmsApi.SetProggressIndicatorVisibility(false); SelectionStackPanel.IsHitTestVisible = true; SettinsCheckBoxList.IsHitTestVisible = true; isInitialized = true; } DataContext = MainPage.data; }