Exemple #1
0
 private static void AssociateScreenToViewController(IRegistrationPresenterService <SampleViewModel> registrationService)
 {
     registrationService.Associate(Navigation.HomeSync, vm => new HomeController());
     registrationService.AssociateModal(Navigation.Menu, vm => new MenuController());
     registrationService.Associate(Navigation.Profile, vm => new ProfileController());
     registrationService.Associate(Navigation.UpdatePwd, vm => new UpdatePasswordController());
     registrationService.AssociateModal(Navigation.Cgu, vm => new CGUController());
     registrationService.Associate(Navigation.Login, vm => new LoginController());
     registrationService.Associate(Navigation.ListOffer, vm => new OfferListController());
     registrationService.Associate(Navigation.DetailOffer, vm => new OfferDetailController());
     registrationService.Associate(Navigation.DetailOffer, vm => new ProductController());
 }
 private static void SetupAndroidNav(IRegistrationPresenterService <SampleViewModel> presenterService)
 {
     presenterService.RegisterDefaultFragmentHost <MainActivity>(shouldClearHistory: false);
     presenterService.AssociateActivity <LoginActivity>(Navigation.Login, shouldClearHistory: true);
     presenterService.AssociateFragment(Navigation.HomeSync, () => new HomeFragment());
     presenterService.AssociateDialogFragment(Navigation.Menu, () => new MenuFragment());
     presenterService.AssociateFragment(Navigation.Profile, () => new ProfileFragment());
     presenterService.AssociateFragment(Navigation.UpdatePwd, () => new UpdatePasswordFragment());
     presenterService.AssociateDialogFragment(Navigation.Cgu, () => new CGUFragment());
     presenterService.AssociateFragment(Navigation.ListOffer, () => new OfferListFragment());
     presenterService.AssociateFragment(Navigation.DetailOffer, () => new OfferDetailFragment());
     presenterService.AssociateFragment(Navigation.DetailProduct, () => new ProductFragment());
 }