protected override void OnResume() { base.OnResume(); // If we haven't already loaded the products from the store, do it now if (listView.Adapter == null && !isFetching) { isFetching = true; ShowLoadingDialog(Resource.String.loading_data); // Fetch the collections SampleApplication.GetCollections( (collections, response) => { isFetching = false; DismissLoadingDialog(); OnFetchedCollections(collections.ToList()); }, (error) => { isFetching = false; OnError(error); }); } }