private async Task LoadDataAsync(){
			//TODO: Step 5 - iOS - Call the services using async and update the UI with the results
			//Create a soap client
			var soapClient = new Core.Client.SoapClient ();
			//Query
			var foundDrugInfo = await soapClient.GetDataAsync();

			//Assign response to our adapter and notify of updates
			tableViewSource.DrugInformation.Clear();
			tableViewSource.DrugInformation.AddRange(foundDrugInfo);
			TableView.ReloadData ();
		}
        private async Task LoadDataAsync(){      
			//TODO: Step 5 - Android - Call the services using async and update the UI with the results
            //Create a soap client
	        var soapClient = new Core.Client.SoapClient ();

	        //Query
	        var foundDrugInfo = await soapClient.GetDataAsync ();

	        //Assign response to our adapter and notify of updates
            adapter.DrugInformation.Clear();
            adapter.DrugInformation.AddRange(foundDrugInfo);
	        adapter.NotifyDataSetChanged ();
        }
Beispiel #3
0
        private async Task LoadDataAsync()
        {
            //TODO: Step 5 - iOS - Call the services using async and update the UI with the results
            //Create a soap client
            var soapClient = new Core.Client.SoapClient();
            //Query
            var foundDrugInfo = await soapClient.GetDataAsync();

            //Assign response to our adapter and notify of updates
            tableViewSource.DrugInformation.Clear();
            tableViewSource.DrugInformation.AddRange(foundDrugInfo);
            TableView.ReloadData();
        }
        private async Task LoadDataAsync()
        {
            //TODO: Step 5 - Android - Call the services using async and update the UI with the results
            //Create a soap client
            var soapClient = new Core.Client.SoapClient();

            //Query
            var foundDrugInfo = await soapClient.GetDataAsync();

            //Assign response to our adapter and notify of updates
            adapter.DrugInformation.Clear();
            adapter.DrugInformation.AddRange(foundDrugInfo);
            adapter.NotifyDataSetChanged();
        }