public override void ViewDidLoad () { base.ViewDidLoad (); Title = "SOAP"; RefreshControl = new UIRefreshControl (); RefreshControl.ValueChanged += async (sender, e) => { //TODO: Step 6b - iOS - Make the call to load the data await LoadDataAsync(); RefreshControl.EndRefreshing(); }; // Register the TableView's data source tableViewSource = new SoapTableViewControllerSource (Enumerable.Empty<Core.Model.DrugInfo>()); TableView.Source = tableViewSource; }
public override void ViewDidLoad() { base.ViewDidLoad(); Title = "SOAP"; RefreshControl = new UIRefreshControl(); RefreshControl.ValueChanged += async(sender, e) => { //TODO: Step 6b - iOS - Make the call to load the data // await LoadDataAsync(); RefreshControl.EndRefreshing(); }; // Register the TableView's data source tableViewSource = new SoapTableViewControllerSource(Enumerable.Empty <Core.Model.DrugInfo>()); TableView.Source = tableViewSource; }