示例#1
0
        /*
         * public void Toggle()
         * {
         *  ViewController.ToggleAreaCollection();
         *
         * }
         */
        public void AddMoreAreas()
        {
            UIStoryboard        board      = UIStoryboard.FromName("Areas", null);
            AreasViewController controller = (AreasViewController)board.InstantiateViewController("Areas");

            controller.View.BackgroundColor = UIColor.Black;
            ViewController.NavigationController.PushViewController(controller, true);
        }
        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)
            {
            }
        }