Esempio n. 1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // create our window
            window = new UIWindow(UIScreen.MainScreen.Bounds);
            window.MakeKeyAndVisible();

            // instantiate our main navigatin controller and add it's view to the window
            mainNavController = new UINavigationController();

            if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone)
            {
                iPhoneHome = new Example_StandardControls.Screens.iPhone.Home.HomeNavController();
                mainNavController.PushViewController(iPhoneHome, false);
            }
            else
            {
                iPadHome = new Example_StandardControls.Screens.iPad.Home.HomeNavController();
                mainNavController.PushViewController(iPadHome, false);
            }

            window.RootViewController = mainNavController;

            //
            return(true);
        }
Esempio n. 2
0
        //========================================================================

        //========================================================================
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            //---- create our window
            this._window = new UIWindow(UIScreen.MainScreen.Bounds);
            this._window.MakeKeyAndVisible();

            //---- are we running an iPhone or an iPad?
            this.DetermineCurrentDevice();

            //---- instantiate our main navigatin controller and add it's view to the window
            this._mainNavController = new UINavigationController();

            switch (this._currentDevice)
            {
            case DeviceType.iPhone:
                this._iPhoneHome = new Example_StandardControls.Screens.iPhone.Home.HomeNavController();
                this._mainNavController.PushViewController(this._iPhoneHome, false);
                break;

            case DeviceType.iPad:
                this._iPadHome = new Example_StandardControls.Screens.iPad.Home.HomeNavController();
                this._mainNavController.PushViewController(this._iPadHome, false);
                break;
            }


            this._window.AddSubview(this._mainNavController.View);


            //----
            return(true);
        }
Esempio n. 3
0
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			// create our window
			window = new UIWindow (UIScreen.MainScreen.Bounds);
			window.MakeKeyAndVisible ();

			// instantiate our main navigatin controller and add it's view to the window
			mainNavController = new UINavigationController ();
			mainNavController.NavigationBar.Translucent = false;

			if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) {
				iPhoneHome = new Example_StandardControls.Screens.iPhone.Home.HomeNavController ();
				mainNavController.PushViewController (iPhoneHome, false);
			} else {
				iPadHome = new Example_StandardControls.Screens.iPad.Home.HomeNavController ();
				mainNavController.PushViewController (iPadHome, false);
			}

			window.RootViewController = mainNavController;

			return true;
		}