Exemple #1
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_HandlingRotation.Screens.iPhone.Home.HomeScreen ();
//					this._mainNavController.PushViewController (this._iPhoneHome, false);
                break;

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


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


            //----
            return(true);
        }
Exemple #2
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();

            iPadHome = new Example_Drawing.Screens.iPad.Home.HomeScreen();
            mainNavController.PushViewController(iPadHome, false);

            window.RootViewController = mainNavController;

            //
            return(true);
        }
		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 ();
			
			iPadHome = new Example_Drawing.Screens.iPad.Home.HomeScreen ();
			mainNavController.PushViewController (iPadHome, false);
			
			window.RootViewController = mainNavController;
			
			//
			return true;
		}