Пример #1
0
        //
        // 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.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

#if DEBUG
            LightSwitchAgent.Init();
#endif

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Пример #2
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            Xamarin.Forms.Forms.Init();
            LightSwitchAgent.Init();

            Window = new UIWindow(UIScreen.MainScreen.Bounds);
            Window.RootViewController = new MyPage().CreateViewController();
            Window.MakeKeyAndVisible();

            ListIPAddresses();

            return(true);
        }
Пример #3
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            Instance = this;

            Xamarin.Forms.FormsMaterial.Init();
            Forms.SetFlags("CollectionView_Experimental");
            Xamarin.Forms.Forms.Init();
            ListIPAddresses();

            new Continuous.Server.HttpServer().Run();

            LightSwitchAgent.Init(new LightSwitch.Agent.Implementation.AgentOptions
            {
                TargetElementGetter = () => new MultiWindowGetter()
            });

            return(true);
        }
Пример #4
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            LightSwitchAgent.Init();

            return(true);
        }
Пример #5
0
        private void AddLightSwitch()
        {
            LightSwitchAgent.Init();

            DidAddLightSwitch = true;
        }