public void LoadMain() { List <string> areaImageUrlList = SL.AreaList.Select(a => a.areaDefaultImageURL).ToList(); FileCachingService.PreloadImagesToDiskFromUrl(areaImageUrlList); ((IntroContainerViewModel)ViewModel).NavigateToMainView.Execute(); //UIStoryboard board = UIStoryboard.FromName("Main", null); //UIViewController ctrl = (UIViewController)board.InstantiateViewController("MainViewController"); //this.PresentViewController(ctrl, false, null); }
void Traverse() { try { AreasViewController areas = pageViewController.ViewControllers[0] as AreasViewController; if (areas != null && SL.HasAreas) { SL.Profile.SetDefaultAreaIfNeeded(); List <string> areaImageUrlList = SL.AreaList.Select(a => a.areaDefaultImageURL).ToList(); FileCachingService.PreloadImagesToDiskFromUrl(areaImageUrlList); LoadMain(); } else { NextPage(); } } catch (Exception) { } }