Пример #1
0
        public override void OnNavigatedTo(NavigationParameters parameters)
        {
            var lela = new Captain()
            {
                Id   = 1,
                Name = "Leela"
            };

            var ship = new Ship()
            {
                Captain   = lela,
                Capacity  = 4,
                CaptainId = 1,
                Id        = 1,
                Name      = "Planet Express Ship"
            };

            Repository.Context.Add(lela);
            Repository.Context.Add(ship);
            Repository.Context.Commit();

            NavService.NavigateAsync("UpdatePage");
            base.OnNavigatedTo(parameters);
        }
Пример #2
0
 private async Task OpenPodcastView(PodcastModel podcast)
 {
     await NavService.NavigateAsync <PodcastViewModel, PodcastModel>(podcast);
 }
Пример #3
0
 private async Task OpenInformationView()
 {
     await NavService.NavigateAsync <InformationViewModel>();
 }