Esempio n. 1
0
		/// <summary>
		/// Finished the launching.
		/// </summary>
		/// <param name="app">The app.</param>
		/// <param name="options">The options.</param>
		/// <returns>True or false.</returns>
		public override bool FinishedLaunching(UIApplication app, NSDictionary options)
		{
            // Stamp the date this was installed (first run)
            StampInstallDate("CodeBucket");
            
            this.Window = new UIWindow(UIScreen.MainScreen.Bounds);
            var presenter = new TouchViewPresenter(this.Window);
            var setup = new Setup(this, presenter);
            setup.Initialize();

             Mvx.Resolve<IErrorService>().Init("http://sentry.dillonbuchanan.com/api/7/store/", "646913784b3d4d85ad04a03d2887f48e  ", "872ee1da3b27408b841e7587bf549a22");

			// Setup theme
			Theme.Setup();

			var startup = Mvx.Resolve<IMvxAppStart>();
			startup.Start();

            this.Window.MakeKeyAndVisible();

            UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);
            UIApplication.SharedApplication.SetStatusBarHidden(false, UIStatusBarAnimation.Fade);

			return true;
		}
Esempio n. 2
0
		/// <summary>
		/// Finished the launching.
		/// </summary>
		/// <param name="app">The app.</param>
		/// <param name="options">The options.</param>
		/// <returns>True or false.</returns>
		public override bool FinishedLaunching(UIApplication app, NSDictionary options)
		{
            // Stamp the date this was installed (first run)
            StampInstallDate("CodeBucket");
            
            this.Window = new UIWindow(UIScreen.MainScreen.Bounds);
            var presenter = new IosViewPresenter(this.Window);
            var setup = new Setup(this, presenter);
            setup.Initialize();

			// Setup theme
			Theme.Setup();

			var startup = Mvx.Resolve<IMvxAppStart>();
			startup.Start();

            this.Window.MakeKeyAndVisible();

            UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);
            UIApplication.SharedApplication.SetStatusBarHidden(false, UIStatusBarAnimation.Fade);

			return true;
		}