示例#1
0
        public static void Initialize()
        {
            _viewModelLocatorService = ViewModelLocatorService <SampleViewModel> .Instance;
            _presenter = new SampleNavigationPresenter(_viewModelLocatorService);
            Navigation = new SampleNavigationService(_presenter);

            SetupAndroidNav(_presenter);

            Navigation.ShowHome();
        }
示例#2
0
        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();
        }