Esempio n. 1
0
        // runs only when not restored from state
        public override Task OnStartAsync(BootStrapper.StartKind startKind, IActivatedEventArgs args)
        {
            var findierService     = Kernel.Resolve <IFindierService>();
            var applicationUtility = Kernel.Resolve <IApplicationUtility>();

            NavigationService.Navigate(findierService.IsAuthenticated || !applicationUtility.IsFirstLaunch
                ? typeof(MainPage)
                : typeof(AuthenticationPage));

            return(Task.FromResult(0));
        }
Esempio n. 2
0
 public override Task OnStartAsync(BootStrapper.StartKind startKind, IActivatedEventArgs args)
 {
     NavigationService.Navigate(typeof(Views.MainPage));
     return(Task.FromResult <object>(null));
 }