public void LoadData(int id) { WPServiceClient WPServiceClient = new WPServiceClient(); WPServiceClient.GetAttractionByIdCompleted += new EventHandler <GetAttractionByIdCompletedEventArgs>(WPServiceClient_GetAttractionByIdCompleted); WPServiceClient.GetAttractionByIdAsync(id); }
public void Search(string inputText) { WPServiceClient WPServiceClient = new WPServiceClient(); WPServiceClient.SearchAttractionsCompleted += new EventHandler <SearchAttractionsCompletedEventArgs>(WPServiceClient_SearchAttractionsCompleted); WPServiceClient.SearchAttractionsAsync(inputText, 0, 20); }
/// <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; }
public void LoadData(int id) { WPServiceClient WPServiceClient = new WPServiceClient(); WPServiceClient.GetAttractionByIdCompleted += new EventHandler<GetAttractionByIdCompletedEventArgs>(WPServiceClient_GetAttractionByIdCompleted); WPServiceClient.GetAttractionByIdAsync(id); }
public void Search(string inputText) { WPServiceClient WPServiceClient = new WPServiceClient(); WPServiceClient.SearchAttractionsCompleted += new EventHandler<SearchAttractionsCompletedEventArgs>(WPServiceClient_SearchAttractionsCompleted); WPServiceClient.SearchAttractionsAsync(inputText, 0, 20); }
/// <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; }