static void Main(string[] args) { DummyPresenterService dummyPresenter = new DummyPresenterService(); SampleNavigationService navigation = new SampleNavigationService(dummyPresenter); /* * navigation.Show(home); * * navigation.Show(cgu); * navigation.Show(menu); * navigation.Show(updatePwd); * navigation.Show(profile); * navigation.Show(login); * navigation.Show(cgu); * // */ //* navigation.ShowOfferDetail("offer1"); navigation.ShowProduct("product1"); navigation.ShowOfferDetail("offer1"); navigation.ShowProduct("product1"); navigation.ShowOfferDetail("offer2"); navigation.ShowOfferDetail("offer3"); // */ /* * navigation.Show("/home"); * navigation.Show("/home/menu"); * navigation.Show("/home/offers/azerty/productId:qsdfgh"); * navigation.Show("/home/offers/azerty/offerId:qsdfgh"); * // */ }
public static void Initialize() { _viewModelLocatorService = ViewModelLocatorService <SampleViewModel> .Instance; _presenter = new SampleNavigationPresenter(_viewModelLocatorService); Navigation = new SampleNavigationService(_presenter); SetupAndroidNav(_presenter); Navigation.ShowHome(); }
public static async void Initialize(UIWindow window) { var navigationController = new UINavigationController(); window.RootViewController = navigationController; _presenter = new SampleNavigationPresenter(navigationController); Navigation = new SampleNavigationService(_presenter); AssociateScreenToViewController(_presenter); await Navigation.ShowHome(); }