예제 #1
0
 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;
 }
예제 #2
0
        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);
        }
예제 #3
0
        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;
        }