Exemplo n.º 1
0
        private void ClubList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            LongListSelector lls = sender as LongListSelector;

            if (lls == null || lls.SelectedItem == null)
            {
                return;
            }

            ClubResult item = lls.SelectedItem as ClubResult;

            NavigationService.Navigate(new Uri("/ClubDetails.xaml?id=" + item.id, UriKind.RelativeOrAbsolute));

            lls.SelectedItem = null;
        }
Exemplo n.º 2
0
        private void HomeLinksList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            LongListSelector lls = sender as LongListSelector;

            if (lls == null || lls.SelectedItem == null)
            {
                return;
            }

            ClubResult res = lls.SelectedItem as ClubResult;

            MainPage.data.ClubIdIsCheked[res.id] = res.IsChecked;

            EmsApi.SaveToPhone(JsonConvert.SerializeObject(MainPage.data.ClubsData), ClubsData.clubsDataKey);
            EmsApi.SaveToPhone(JsonConvert.SerializeObject(MainPage.data.ClubIdIsCheked), ClubsData.IsCheckedKey);

            lls.SelectedItem = null;
        }