コード例 #1
0
        public void LoadData(int id)
        {
            WPServiceClient WPServiceClient = new WPServiceClient();

            WPServiceClient.GetAttractionByIdCompleted += new EventHandler <GetAttractionByIdCompletedEventArgs>(WPServiceClient_GetAttractionByIdCompleted);
            WPServiceClient.GetAttractionByIdAsync(id);
        }
コード例 #2
0
        public void Search(string inputText)
        {
            WPServiceClient WPServiceClient = new WPServiceClient();

            WPServiceClient.SearchAttractionsCompleted += new EventHandler <SearchAttractionsCompletedEventArgs>(WPServiceClient_SearchAttractionsCompleted);
            WPServiceClient.SearchAttractionsAsync(inputText, 0, 20);
        }
コード例 #3
0
        /// <summary>
        /// Creates and adds a few ItemViewModel objects into the Items collection.
        /// </summary>
        public void LoadData()
        {
            // load data from WPService

            WPServiceClient WPServiceClient = new WPServiceClient();

            WPServiceClient.GetAttractionsCompleted += new EventHandler <GetAttractionsCompletedEventArgs>(WPServiceClient_GetAttractionsCompleted);
            WPServiceClient.GetAttractionsAsync(null, 0, 20);

            this.IsDataLoaded = true;
        }
コード例 #4
0
 public void LoadData(int id)
 {
     WPServiceClient WPServiceClient = new WPServiceClient();
     WPServiceClient.GetAttractionByIdCompleted += new EventHandler<GetAttractionByIdCompletedEventArgs>(WPServiceClient_GetAttractionByIdCompleted);
     WPServiceClient.GetAttractionByIdAsync(id);
 }
コード例 #5
0
 public void Search(string inputText)
 {
     WPServiceClient WPServiceClient = new WPServiceClient();
     WPServiceClient.SearchAttractionsCompleted += new EventHandler<SearchAttractionsCompletedEventArgs>(WPServiceClient_SearchAttractionsCompleted);
     WPServiceClient.SearchAttractionsAsync(inputText, 0, 20);
 }
コード例 #6
0
        /// <summary>
        /// Creates and adds a few ItemViewModel objects into the Items collection.
        /// </summary>
        public void LoadData()
        {
            // load data from WPService

            WPServiceClient WPServiceClient = new WPServiceClient();
            WPServiceClient.GetAttractionsCompleted += new EventHandler<GetAttractionsCompletedEventArgs>(WPServiceClient_GetAttractionsCompleted);
            WPServiceClient.GetAttractionsAsync(null, 0, 20);

            this.IsDataLoaded = true;
        }