public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { // Override point for customization after application launch. // If not required for your application you can safely delete this method var client = new StorageClient(); ImageDownloader down = new ImageDownloader(client); this.Window = new UIWindow(UIScreen.MainScreen.Bounds); MovieSettings ApiConnection = new MovieSettings(); DownloadImage download = new DownloadImage(down); MovieService ApiService = new MovieService(download); var MovieSearchController = new MovieController(ApiConnection, ApiService); var MovieSearchNavigationControler = new UINavigationController(MovieSearchController); var MovieRatedController = new RatedController(ApiConnection, ApiService); var MovieRatedNavigationController = new UINavigationController(MovieRatedController); var movieTabController = new MovieTabController() { ViewControllers = new UIViewController[] { MovieSearchNavigationControler, MovieRatedNavigationController } }; this.Window.RootViewController = movieTabController; this.Window.MakeKeyAndVisible(); return(true); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { // Override point for customization after application launch. // If not required for your application you can safely delete this method this.Window = new UIWindow(UIScreen.MainScreen.Bounds); var movieController = new MovieController(); var movies = movieController.returnMoviesObjects(); var movieNavigationController = new UINavigationController(movieController); var movieCollectionController = new MovieCollectionController(this.CreateFlowLayout(), movies._moviesModelList); var movieCollectionNavigationController = new UINavigationController(movieCollectionController); var tabBarController = new TabBarController() { ViewControllers = new UIViewController[] { movieNavigationController, movieCollectionNavigationController } }; this.Window.RootViewController = tabBarController; this.Window.MakeKeyAndVisible(); return(true); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { this._searchMoviesHelper = new MovieHelper(); this._topRatedMoviesHelper = new MovieHelper(); // Override point for customization after application launch. // If not required for your application you can safely delete this method this.Window = new UIWindow(UIScreen.MainScreen.Bounds); var movieController = new MovieController(this._searchMoviesHelper); var movieNavigationController = new UINavigationController(movieController); var topRatedMovieController = new TopRatedMovieController(this._topRatedMoviesHelper); var topRatedMovieNavigationController = new UINavigationController(topRatedMovieController); var tabBarController = new TabBarController() { ViewControllers = new UIViewController[] { movieNavigationController, topRatedMovieNavigationController } }; this.Window.RootViewController = tabBarController; this.Window.MakeKeyAndVisible(); return(true); }