public override void ViewDidLoad() { base.ViewDidLoad(); HandleButtons(); var current = Connectivity.NetworkAccess; //Connection to internet is available if (current == NetworkAccess.Internet) { //Call runtime var resultCat = AppRuntime.MarketData.getCategories(); if (resultCat.ServiceResponseStatus.IsSuccess) { var listCategories = resultCat.CategoryInfo.Where(e => e.Image != null).ToList(); Categories.CatetoriesCollectionViewSource CollectionViewSource = new Categories.CatetoriesCollectionViewSource(listCategories, this); CategoriasCollectionView.AllowsSelection = true; CategoriasCollectionView.DataSource = CollectionViewSource; Categories.CategoriesDelegateFlowLayout categoriesDelegateFlowLayout = new Categories.CategoriesDelegateFlowLayout(listCategories, this); CategoriasCollectionView.Delegate = categoriesDelegateFlowLayout; CategoriasCollectionView.ReloadData(); } // Obtenemos los productos del servicio de busqueda var resultSearch = AppRuntime.MarketData.SearchProducts(); if (resultSearch.ServiceResponseStatus.IsSuccess) { listSearch = resultSearch.SearchResult.ToList(); } } }
void ReleaseDesignerOutlets() { if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (CanvelView != null) { CanvelView.Dispose(); CanvelView = null; } if (CarButton != null) { CarButton.Dispose(); CarButton = null; } if (CategoriasCollectionView != null) { CategoriasCollectionView.Dispose(); CategoriasCollectionView = null; } if (OptionsView != null) { OptionsView.Dispose(); OptionsView = null; } if (SearchTableView != null) { SearchTableView.Dispose(); SearchTableView = null; } if (SearchTextField != null) { SearchTextField.Dispose(); SearchTextField = null; } if (UserButton != null) { UserButton.Dispose(); UserButton = null; } }