Пример #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_Touch.Screens.iPhone.Home.Home_iPhone();
                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);
        }
Пример #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();

            iPhoneHome = new Example_Touch.Screens.iPhone.Home.Home_iPhone();
            mainNavController.PushViewController(iPhoneHome, false);

            window.RootViewController = mainNavController;

            return(true);
        }
Пример #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 ();

            iPhoneHome = new Example_Touch.Screens.iPhone.Home.Home_iPhone ();
            mainNavController.PushViewController (iPhoneHome, false);

            window.RootViewController = mainNavController;

            return true;
        }