Exemplo n.º 1
0
        protected override void OnInitializeRunner()
        {
            //Acr.Logging.Log.ToDebug();

            //this.AddTestAssembly(typeof(Plugin.BluetoothLE.Tests.DeviceTests).GetTypeInfo().Assembly);
            UwpShinyHost.Init(new TestStartup());
            this.AddTestAssembly(this.GetType().GetTypeInfo().Assembly);
        }
Exemplo n.º 2
0
        protected override void OnLaunched(LaunchActivatedEventArgs e)
        {
            var rootFrame = Window.Current.Content as Frame;

            if (rootFrame == null)
            {
                rootFrame = new Frame();
                rootFrame.NavigationFailed += this.OnNavigationFailed;
                Forms.Init(e);
                UwpShinyHost.Init(new SampleStartup());

                Window.Current.Content = rootFrame;
            }

            if (rootFrame.Content == null)
            {
                rootFrame.Navigate(typeof(MainPage), e.Arguments);
            }

            Window.Current.Activate();
        }
Exemplo n.º 3
0
 public App()
 {
     this.InitializeComponent();
     this.Suspending += this.OnSuspending;
     UwpShinyHost.Init(new ShinyStartup());
 }
Exemplo n.º 4
0
 public App()
 {
     this.InitializeComponent();
     //UwpShinyHost.ClearBackgroundTasks();
     UwpShinyHost.Init(new SampleStartup());
 }