Ejemplo n.º 1
0
        private NavService ConfigureNavService()
        {
            NavService navService = new NavService();

            navService.Configure(Constants.Navigation.MainPage, typeof(MainPage));
            navService.Configure(Constants.Navigation.Overview, typeof(Overview));
            navService.Configure(Constants.Navigation.CreateWorkdayView, typeof(CreateWorkdayView));

            return(navService);
        }
Ejemplo n.º 2
0
        private static void SetupNavigation()
        {
            var navigationService = new NavService();

            navigationService.Configure("Home", new Uri("../View/Home.xaml", UriKind.Relative));
            navigationService.Configure("Subscribe", new Uri("../View/AddUser.xaml", UriKind.Relative));
            navigationService.Configure("Login", new Uri("../View/Login.xaml", UriKind.Relative));
            navigationService.Configure("ShowMovies", new Uri("../View/AllMovies.xaml", UriKind.Relative));
            navigationService.Configure("ShowUsers", new Uri("../View/AllUsers.xaml", UriKind.Relative));
            navigationService.Configure("AddMovie", new Uri("../View/AddMovie.xaml", UriKind.Relative));
            navigationService.Configure("InfoMovie", new Uri("../View/InfoMovie.xaml", UriKind.Relative));
            navigationService.Configure("InfoUser", new Uri("../View/InfoUser.xaml", UriKind.Relative));
            navigationService.Configure("EditMovie", new Uri("../View/EditMovie.xaml", UriKind.Relative));
            navigationService.Configure("EditUser", new Uri("../View/EditUser.xaml", UriKind.Relative));
            SimpleIoc.Default.Register <INavService>(() => navigationService);
        }