Esempio n. 1
0
        partial void DoneButton_TouchUpInside(UIButton sender)
        {
            if (SL.IsNetworkConnected("Facebook") || SL.IsNetworkConnected("Twitter") || SL.IsNetworkConnected("Instagram"))
            {
                if (SL.HasAreas)
                {
                    SL.Profile.SetDefaultAreaIfNeeded();
                    //IntroContainerViewController.LoadMain();

                    List <string> areaImageUrlList = SL.AreaList.Select(a => a.areaDefaultImageURL).ToList();
                    Services.FileCachingService.PreloadImagesToDiskFromUrl(areaImageUrlList);

                    var storyboard = UIStoryboard.FromName("Main", null);
                    UIViewController viewController = storyboard.InstantiateViewController("MainNav1") as UIViewController;
                    PresentViewController(viewController, true, null);
                }
                else
                {
                    UIStoryboard     board          = UIStoryboard.FromName("Areas", null);
                    UIViewController viewController = (UIViewController)board.InstantiateViewController("Areas");
                    var areasView = (viewController as AreasViewController);

                    Platform.AddVideo(areasView.View);
                    Platform.AddCover(areasView.View);

                    areasView.UnHideViews();
                    PresentViewController(viewController, false, null);
                    //Platform.ShowAlert(null, "You must join an area to complete setup!");
                }
            }
        }
 void ApplyStyle()
 {
     Platform.AddVideo(View);
     Platform.AddCover(View);
 }