public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { var view = inflater.Inflate(Resource.Layout.CreatePostToolsFragment, container, false); IViewTools viewTools = view.FindViewById <CreatePostToolsView>(Resource.Id.createPost_tools_view); ThemesHelper.PerformTheme(container.Context, Themes.GetToolsTheme()); IInteractorTools interactor = new InteractorTools( DataService.RepositoryController.RepoQc as IRepositoryNames, new SearchHelper <string>()); IPresenterTools presenter = new PresenterTools(viewTools, interactor, new RouterToolsDroid(this), new ToolsStylesHolderDroid <GlobalControlsTheme>(DroidDAL.ThemeParser)); presenter.SetTheme(ThemeHolder.ToolsThemeStrings); Holder holder = new Holder(view, this); var routerToolBarBack = new RouterToolBarBack(Activity); var stylesHolderToolBarBack = new ToolBarBackStylesHolderDroid <GlobalControlsTheme>(DroidDAL.ThemeParser); var title = DataService.RepositoryController.RepositoryCreatePost.LangCreatePost.CreatePostToolsActivityTitle; var presenterToolBarBack = new PresenterToolBarBack(holder.ToolBarBackView, routerToolBarBack, stylesHolderToolBarBack, title); presenterToolBarBack.SetConfig(); return(view); }
public override void ViewDidLoad() { base.ViewDidLoad(); ThemeHelper.PerformTheme(Themes.GetToolsTheme()); _countriesView.SetConfig(); IInteractorTools interactor = new InteractorTools(DataService.RepositoryController.RepositoryCountries, new SearchHelper <string>()); IPresenterTools presenter = new PresenterTools(_countriesView, interactor, new RouterToolsCountriesIOS(NavigationController), new ToolsStylesHolderIOS <GlobalControlsTheme>(iOS_DAL.ThemeParser)); presenter.SetTheme(ThemeHolder.ToolsThemeStrings); NavigationController.NavigationBar.Hidden = false; var toolbarBackView = new ToolBarBackView(NavigationItem, NavigationController.NavigationBar); var routerToolBarBack = new RouterToolBarBack(NavigationController); var stylesHolderToolBarBack = new ToolBarBackStylesHolderIOS <GlobalControlsTheme>(iOS_DAL.ThemeParser); var title = Locale.Localization.Lang.EditContactCountriesToolbar; var presenterToolBarBack = new PresenterToolBarBack(toolbarBackView, routerToolBarBack, stylesHolderToolBarBack, title); presenterToolBarBack.SetConfig(); }
public override void ViewDidLoad() { base.ViewDidLoad(); ThemeHelper.PerformTheme(Themes.GetToolsTheme()); toolsView.SetConfig(); IInteractorTools interactor = new InteractorTools(DataService.RepositoryController.RepoQc as IRepositoryNames, new SearchHelper <string>()); IPresenterTools presenter = new PresenterTools(toolsView, interactor, new RouterToolsIOS(this), new ToolsStylesHolderIOS <GlobalControlsTheme>(iOS_DAL.ThemeParser)); presenter.SetTheme(ThemeHolder.ToolsThemeStrings); NavigationController.NavigationBar.Hidden = false; var toolbarBackView = new ToolBarBackView(NavigationItem, NavigationController.NavigationBar); var routerToolBarBack = new RouterToolBarBack(NavigationController); var stylesHolderToolBarBack = new ToolBarBackStylesHolderIOS <GlobalControlsTheme>(iOS_DAL.ThemeParser); var title = DataService.RepositoryController.RepositoryCreatePost.LangCreatePost.CreatePostToolsActivityTitle; var presenterToolBarBack = new PresenterToolBarBack(toolbarBackView, routerToolBarBack, stylesHolderToolBarBack, title); presenterToolBarBack.SetConfig(); }