public void InitializeRunsControllerFields(UITableViewSource sessionSource, Profiles profileRow) { //pass in profile CurrentProfile = profileRow; //create source for ran images row RanImagesSource = new TableSourceRanImages(); //images table view controller set up imageTableViewController = new ImagesTableViewController(RanImagesSource); imageTableViewController.View.Hidden = true; imagesTableviewNavController = new UINavigationController(imageTableViewController); imagesTableviewNavController.View.BackgroundColor = AppColors.LIGHT_TEAL; imagesTableviewNavController.NavigationBar.TitleTextAttributes = new UIStringAttributes() { ForegroundColor = UIColor.White }; imagesTableviewNavController.NavigationBar.BarTintColor = AppColors.DARK_GRAY; //source assignments SessionSource = (TableSourceSessions)sessionSource; ranSessions = new RunsTableViewController(CurrentProfile); //add delegate to the session source SessionSource.SessionRowToController += GetRowClickedFromSessionSource; SessionSource.HideTable += ShowImagesTableHandler; navigationController = new UINavigationController(ranSessions); navigationController.NavigationBar.BarTintColor = AppColors.DARK_GRAY; //navigationController.NavigationBar.TitleTextAttributes = new UIStringAttributes() { Font = UIFont.FromName("Arial", 12f)}; runsSplitViewController = new RunsSplitViewController(ranSessions, navigationController, imagesTableviewNavController); runsSplitViewController.View.Hidden = true; navigationController.NavigationItem.Title.StringSize(UIFont.FromName("Arial", 20f)); }
public SettingsAlertController(Profiles profileSelected, Category categorySelected, MainTabBarController tab, TableSourceSessions session, RunsTableViewController runTableViewController, ImagesTableViewController ImageTableViewController) : base("SettingsAlertController", null) { CurrentProfile = profileSelected; CurrentCategory = categorySelected; tabBar = tab; SessionSource = session; runsTableViewController = runTableViewController; imageTableViewController = ImageTableViewController; }
public FinishScreenController(MainTabBarController tab, TableSourceSessions s, RunsTableViewController r, ImagesTableViewController i, Profiles p, Category c) : base("FinishScreenController", null) { tabBar = tab; SessionSource = s; ranSessions = r; imageTableViewController = i; CurrentProfile = p; SessionCategory = c; }