Exemplo n.º 1
0
        public override void Load()
        {
            var navService = new XamarinFormsNavService();

            navService.XamarinFormsNav = _xfNav;

            // Register view mapping
            navService.RegisterViewMapping(typeof(SignInViewModel), typeof(SignInPage));
            navService.RegisterViewMapping(
                typeof(MainViewModel),
                typeof(MainPage)
                );

            navService.RegisterViewMapping(
                typeof(DetailViewModel),
                typeof(DetailPage));

            navService.RegisterViewMapping(
                typeof(NewEntryViewModel),
                typeof(NewEntryPage)
                );

            Bind <INavService>()
            .ToMethod(x => navService)
            .InSingletonScope();
        }
        public override void Load()
        {
            var navService = new XamarinFormsNavService();

            navService.RegisterViewMapping(typeof(MainViewModel), typeof(MainPage));

            navService.RegisterViewMapping(typeof(CocktailModeViewModel), typeof(CocktailmodePage));
            navService.RegisterViewMapping(typeof(SelectConfigurationViewModel), typeof(SelectConfigurationView));

            navService.RegisterViewMapping(typeof(DrinksViewModel), typeof(DrinksPage));
            navService.RegisterViewMapping(typeof(DrinkDetailViewModel), typeof(DrinkDetailPage));
            navService.RegisterViewMapping(typeof(NewDrinkViewModel), typeof(NewDrinkPage));
            navService.RegisterViewMapping(typeof(EditDrinkViewModel), typeof(EditDrinkPage));

            navService.RegisterViewMapping(typeof(ConfigurationsViewModel), typeof(ConfigurationsPage));
            navService.RegisterViewMapping(typeof(ConfigurationDetailViewModel), typeof(ConfigurationDetailPage));
            navService.RegisterViewMapping(typeof(NewConfigurationViewModel), typeof(NewConfigurationPage));
            navService.RegisterViewMapping(typeof(EditConfigurationViewModel), typeof(EditConfigurationPage));

            navService.RegisterViewMapping(typeof(RecipesViewModel), typeof(RecipesPage));
            navService.RegisterViewMapping(typeof(NewRecipeViewModel), typeof(NewRecipePage));
            navService.RegisterViewMapping(typeof(RecipeDetailViewModel), typeof(RecipeDetailPage));
            navService.RegisterViewMapping(typeof(EditRecipeViewModel), typeof(EditRecipePage));

            navService.RegisterViewMapping(typeof(ModeSelectViewModel), typeof(ModeSelectPage));
            navService.RegisterViewMapping(typeof(LogViewModel), typeof(LogView));
            navService.RegisterViewMapping(typeof(ExportViewModel), typeof(ExportView));
            navService.RegisterViewMapping(typeof(ImportViewModel), typeof(ImportView));

            navService.RegisterViewMapping(typeof(BluetoothViewModel), typeof(BluetoothView));

            Bind <INavService>().ToMethod(x => navService).InSingletonScope();
        }
Exemplo n.º 3
0
        public override void Load()
        {
            var navService = new XamarinFormsNavService();

            navService.RegisterViewMapping(typeof(RemindersViewModel), typeof(RemindersPage));
            navService.RegisterViewMapping(typeof(ReminderDetailViewModel), typeof(ReminderDetailPage));
            navService.RegisterViewMapping(typeof(NewReminderViewModel), typeof(NewReminderPage));

            Bind <INavService>()
            .ToMethod(x => navService)
            .InSingletonScope();
        }
Exemplo n.º 4
0
		public override void Load ()
		{
			var navService = new XamarinFormsNavService ();
			navService.XamarinFormsNav = xfNav;

			navService.RegisterViewMapping (typeof(SignInViewModel), typeof(SignInPage));
			navService.RegisterViewMapping (typeof(MainViewModel), typeof(MainPage));
			navService.RegisterViewMapping (typeof(DetailViewModel), typeof(DetailPage));
			navService.RegisterViewMapping (typeof(NewEntryViewModel), typeof(NewEntryPage));

			Bind<INavService> ().ToMethod (x => navService).InSingletonScope ();
		}
Exemplo n.º 5
0
        public override void Load()
        {
            var navService = new XamarinFormsNavService();

            navService.NavigationInstance = _navigation;

            navService.RegisterViewMapping(typeof(TripLogViewModel), typeof(TripLogPage));
            navService.RegisterViewMapping(typeof(DetailViewModel), typeof(DetailPage));
            navService.RegisterViewMapping(typeof(NewEntryViewModel), typeof(NewEntryPage));

            Bind <INavService>().ToMethod(x => navService).InSingletonScope();
        }
Exemplo n.º 6
0
        public override void Load()
        {
            var navService = new XamarinFormsNavService();

            //Register view mappings
            navService.RegisterViewMapping(typeof(MainViewModel), typeof(MainPage));
            navService.RegisterViewMapping(typeof(FileIOTransferVM), typeof(FileIOTransferPage));
            navService.RegisterViewMapping(typeof(WebTransferVM), typeof(WebTransferPage));

            Bind <INavService>()
            .ToMethod(x => navService)
            .InSingletonScope();
        }
Exemplo n.º 7
0
        public override void Load()
        {
            var navService = new XamarinFormsNavService();

            navService.XamarinFormsNav = _xfNav;

            // Ricordarsi di aggiungere sempre alla mappa ogni ViewModel-View
            navService.RegisterViewMapping(typeof(LoginPageViewModel),
                                           typeof(LoginPage));

            navService.RegisterViewMapping(typeof(SubmitPageViewModel),
                                           typeof(SubmitPage));

            navService.RegisterViewMapping(typeof(SearchPageViewModel),
                                           typeof(SearchPage));

            navService.RegisterViewMapping(typeof(AnnunciPageViewModel),
                                           typeof(AnnunciPage));

            navService.RegisterViewMapping(typeof(UtentePageViewModel),
                                           typeof(UtentePage));

            navService.RegisterViewMapping(typeof(DettaglioAnnuncioViewModel),
                                           typeof(DettaglioAnnuncioPage));

            navService.RegisterViewMapping(typeof(ModificaDatiViewModel),
                                           typeof(ModificaDati));

            navService.RegisterViewMapping(typeof(AggiungiAnnuncioViewModel),
                                           typeof(AggiungiAnnuncioPage));

            navService.RegisterViewMapping(typeof(AnnunciUtenteViewModel),
                                           typeof(AnnunciUtentePage));

            navService.RegisterViewMapping(typeof(GestioneAnnuncioViewModel),
                                           typeof(GestioneAnnuncioPage));

            navService.RegisterViewMapping(typeof(InfoUtenteViewModel),
                                           typeof(InfoUtenti));

            navService.RegisterViewMapping(typeof(AnnunciQueryViewModel),
                                           typeof(AnnunciQueryPage));

            Bind <INavService>()
            .ToMethod(x => navService)
            .InSingletonScope();
        }
Exemplo n.º 8
0
        public override void Load()
        {
            var navService = new XamarinFormsNavService();

            //navService.RegisterViewMapping(typeof(SignInViewModel), typeof(SignInPage));
            navService.RegisterViewMapping(typeof(MainViewModel), typeof(MainPage));
            navService.RegisterViewMapping(typeof(UserDetailViewModel), typeof(UserDetailPage));
            navService.RegisterViewMapping(typeof(WorkoutDetailViewModel), typeof(WorkoutDetailPage));
            navService.RegisterViewMapping(typeof(NewWorkoutViewModel), typeof(NewWorkoutPage));
            navService.RegisterViewMapping(typeof(NewExerciseViewModel), typeof(NewExercisePage));
            navService.RegisterViewMapping(typeof(LoginViewModel), typeof(LoginPage));
            navService.RegisterViewMapping(typeof(EditWorkoutViewModel), typeof(WorkoutEditPage));
            navService.RegisterViewMapping(typeof(ExerciseDetailViewModel), typeof(ExerciseDetailPage));
            navService.RegisterViewMapping(typeof(EditExerciseViewModel), typeof(ExerciseEditPage));
            navService.RegisterViewMapping(typeof(LandingViewModel), typeof(LandingPage));
            navService.RegisterViewMapping(typeof(SignupViewModel), typeof(SignupPage));
            navService.RegisterViewMapping(typeof(EditUserViewModel), typeof(EditUser));
            Bind <INavService>()
            .ToMethod(x => navService)
            .InSingletonScope();
        }
Exemplo n.º 9
0
        public override void Load()
        {
            var navService = new XamarinFormsNavService();

            navService.RegisterViewMapping(typeof(HomePageViewModel), typeof(HomePage));
            navService.RegisterViewMapping(typeof(MealLogDetailViewModel), typeof(MealLogDetailPage));
            navService.RegisterViewMapping(typeof(NewMealLogViewModel), typeof(NewMealLogPage));
            navService.RegisterViewMapping(typeof(SearchMealLogViewModel), typeof(SearchMealLogPage));
            navService.RegisterViewMapping(typeof(ViewAllMealLogViewModel), typeof(ViewAllMealLogPage));
            navService.RegisterViewMapping(typeof(ActivityLogDetailViewModel), typeof(ActivityLogDetailPage));
            navService.RegisterViewMapping(typeof(NewActivityLogViewModel), typeof(NewActivityLogPage));
            navService.RegisterViewMapping(typeof(ViewAllActivityLogViewModel), typeof(ViewAllActivityLogPage));
            navService.RegisterViewMapping(typeof(AuthenticationViewModel), typeof(AuthenticationPage));
            navService.RegisterViewMapping(typeof(LoginViewModel), typeof(LoginPage));
            navService.RegisterViewMapping(typeof(RegisterViewModel), typeof(RegisterPage));
            navService.RegisterViewMapping(typeof(CloudStorageViewModel), typeof(CloudStoragePage));

            Bind <INavService>()
            .ToMethod(x => navService)
            .InSingletonScope();
        }