Beispiel #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);


            var accountManager = new AccountManagerImplementation();
            var instance       = WhoBrokeIt.UI.Helpers.Settings.VisualStudioInstance;
            var tokent         = accountManager.GetTokenForInstance(instance);


            var intent = new Intent(this, typeof(MainActivity));

            StartActivity(intent);
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            var accountManager = new AccountManagerImplementation();
            var instance       = Settings.VisualStudioInstance;
            var tokent         = accountManager.GetTokenForInstance(instance);

            var formsApp = new UI.WhoBrokeItApp(instance, tokent);

            UIView.Appearance.TintColor = formsApp.VisualStudioColor.ToUIColor();
            UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, true);

            LoadApplication(formsApp);

            return(base.FinishedLaunching(app, options));
        }