/// <summary> /// Method called on Async complete /// </summary> /// <param name="statusCode"></param> /// <param name="customers"></param> /// <remarks></remarks> private void OnCustomerComplete(HttpStatusCode statusCode, PagedCollection <Customer> customers) { //Invoke the SetDataSource method on the UI thread var d = new SetCustomersCallback(SetCustomerDataSource); Invoke(d, new object[] { customers }); }
/// <summary> /// Method called on Async complete /// </summary> /// <param name="statusCode"></param> /// <param name="customers"></param> /// <remarks></remarks> private void OnCustomerComplete(HttpStatusCode statusCode, PagedCollection<Customer> customers) { //Invoke the SetDataSource method on the UI thread var d = new SetCustomersCallback(SetCustomerDataSource); Invoke(d, new object[] {customers}); }