public override void ViewDidLoad() { base.ViewDidLoad(); var searchOptions = new AsyncSearchOptions <List <DataMap> >(SearchAsync, ReloadData); _asyncSearch = new AsyncSearch <List <DataMap> >(View, searchOptions); tableView.Source = new TableSource(this); Title = _field.Label; AddSearchBar(); }
public override void ViewDidLoad() { base.ViewDidLoad(); var searchOptions = new AsyncSearchOptions <List <DataMap> >(SearchAsync, ReloadData); _asyncSearch = new AsyncSearch <List <DataMap> >(View, searchOptions); AddBorders(); AddNavigationItems(); AddSearchBar(); SwitchOrientation(InterfaceOrientation); // TODO: this null check should be removed. If // metadata is null, Reload should not called // in the first place. if (null != _applicationMetadata) { ReloadData(); } }