Esempio n. 1
0
        public void NavigateToHome(EntryViewModel fromViewModel)
        {
            var rootNavigationController = NavigationViewProvider.GetViewController <RootNavigationController, EntryViewModel>(fromViewModel);
            var homeViewController       = new HomeViewController();

            Navigate(rootNavigationController, homeViewController, true);
        }
Esempio n. 2
0
 void _go_home()
 {
     Debug.Log(" HomeViewController 点击了主页按钮。");
     if (!TimeOutButton.gameObject.activeSelf)
     {
         TrackerManager.Instance.GetTracker <ObjectTracker>().Stop();
     }
     if (isLightClick)
     {
         CameraDevice.Instance.SetFlashTorchMode(false);
     }
     for (int i = 0; i < GameObject.Find("ARCamera").transform.childCount; ++i)
     {
         GameObject.Find("ARCamera").transform.GetChild(i).gameObject.SetActive(false);
     }
     AppHomeViewController.IsShowGuide = false;
     Instance = null;
     Helper.Searchcanvas.GetComponent <SearchViewController>().InputField.text = string.Empty;
     for (int i = 0; i < Helper.Searchcanvas.GetComponent <SearchViewController>().ContentPanel.transform.childCount; ++i)
     {
         Destroy(Helper.Searchcanvas.GetComponent <SearchViewController>().ContentPanel.transform.GetChild(i).gameObject);
     }
     Resources.UnloadUnusedAssets();
     System.GC.Collect();
     SceneManager.LoadScene("Scene/home");
 }
Esempio n. 3
0
        public void Initialize(UIWindow window)
        {
            var rootViewController = new HomeViewController();

            _navigationController = new UINavigationController(rootViewController);
            _navigationController.SetNavigationBarHidden(true, false);
            _navigationController.SetToolbarHidden(true, false);

            window.RootViewController = _navigationController;
            window.MakeKeyAndVisible();
        }
Esempio n. 4
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            window = new UIWindow(UIScreen.MainScreen.Bounds);

            viewController            = new HomeViewController();
            window.RootViewController = viewController;
            window.MakeKeyAndVisible();

            // Initialize the Azure Mobile Services SDK
            CurrentPlatform.Init();

            return(true);
        }
Esempio n. 5
0
        public bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            var controller = new HomeViewController();

            var nav = new UINavigationController(controller);

            Window.RootViewController = nav;
            Window.MakeKeyAndVisible();

            return(true);
        }
Esempio n. 6
0
        public override void Selected(DialogViewController dvc, UITableView tableView, MonoTouch.Foundation.NSIndexPath path)
        {
            var sds = new HomeViewController(entry);

            dvc.ActivateController(sds);
        }
		public override void Selected (DialogViewController dvc, UITableView tableView, MonoTouch.Foundation.NSIndexPath path)
		{
			var sds = new HomeViewController(entry);
			dvc.ActivateController (sds);
		}
Esempio n. 8
0
 private void Awake()
 {
     Instance = this;
 }