Example #1
0
        void client_GetLocationsCompleted(object sender, GetLocationsCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                string xml     = e.Result;
                var    locList = getCatListFromXml(xml);
                locationPicker.ItemsSource = locList;

                if (!String.IsNullOrWhiteSpace(currentFilters.Location))
                {
                    var current = (from p in locList where (p as Item).Name == currentFilters.Location select p).First();
                    locationPicker.SelectedItem = current;
                }
            }
            asyncCompleted++;
            CheckFinish();
        }
Example #2
0
        void client_GetLocationsCompleted(object sender, GetLocationsCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                string xml = e.Result;
                var locList = getCatListFromXml(xml);
                locationPicker.ItemsSource = locList;

                if (!String.IsNullOrWhiteSpace(currentFilters.Location))
                {
                    var current = (from p in locList where (p as Item).Name == currentFilters.Location select p).First();
                    locationPicker.SelectedItem = current;
                }

            }
            asyncCompleted++;
            CheckFinish();
        }