コード例 #1
0
        public void PushPresenter(object presenter)
        {
            if (presenter is SearchResultsPresenter)
            {
                var viewController = new SearchResultsViewController(presenter as SearchResultsPresenter);
                _navigationController.PushViewController(viewController, true);
            }

            if (presenter is PropertyPresenter)
            {
                var viewController = new PropertyViewController(presenter as PropertyPresenter);
                _navigationController.PushViewController(viewController, true);
            }

            if (presenter is FavouritesPresenter)
            {
                var viewController = new FavouritesViewController(presenter as FavouritesPresenter);
                _navigationController.PushViewController(viewController, true);
            }
        }
コード例 #2
0
        public void PushPresenter(object presenter)
        {
            if (presenter is SearchResultsPresenter)
              {
            var viewController = new SearchResultsViewController(presenter as SearchResultsPresenter);
            _navigationController.PushViewController(viewController, true);
              }

              if (presenter is PropertyPresenter)
              {
            var viewController = new PropertyViewController(presenter as PropertyPresenter);
            _navigationController.PushViewController(viewController, true);
              }

              if (presenter is FavouritesPresenter)
              {
            var viewController = new FavouritesViewController(presenter as FavouritesPresenter);
            _navigationController.PushViewController(viewController, true);
              }
        }