Exemplo n.º 1
0
            public DataSource(RootViewController controller)
            {
                this.controller = controller;

                // Create the ViewController which will display play specific information
                // and re-use it for each play.
                PlayView = new DetailViewController();

                // Create the data we need to display
                Plays = Play.CreateDemoPlays();
            }
			public DataSource (RootViewController controller)
			{
				this.controller = controller;

				// Create the ViewController which will display play specific information
				// and re-use it for each play.
				PlayView = new DetailViewController ();

				// Create the data we need to display
				Plays = Play.CreateDemoPlays ();
			}
Exemplo n.º 3
0
		/// <summary>
		/// 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.
		/// </summary>
		/// <remarks>
		/// You have 5 seconds to return from this method, or iOS will terminate your application.
		/// </remarks>
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			window = new UIWindow (UIScreen.MainScreen.Bounds);

			var controller = new RootViewController ("RootViewController", null);
			navigationController = new UINavigationController (controller);
			window.RootViewController = navigationController;

			// make the window visible
			window.MakeKeyAndVisible ();

			return true;
		}
Exemplo n.º 4
0
        /// <summary>
        /// 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.
        /// </summary>
        /// <remarks>
        /// You have 5 seconds to return from this method, or iOS will terminate your application.
        /// </remarks>
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            window = new UIWindow(UIScreen.MainScreen.Bounds);

            var controller = new RootViewController("RootViewController", null);

            navigationController      = new UINavigationController(controller);
            window.RootViewController = navigationController;

            // make the window visible
            window.MakeKeyAndVisible();

            return(true);
        }