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 SessionsTableViewController(TableSourceSessions sessionSource) : base()
 {
     table = new UITableView();
     table.BackgroundColor = AppColors.LIGHT_TEAL;
     source       = sessionSource;
     View         = table;
     table.Source = source;
 }
 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;
 }
        public void setFieldsAndInitialize(UITableViewSource sessionSource, Profiles profileRow, MainTabBarController tab)
        {
            SessionSource = (TableSourceSessions)sessionSource;
            tabBar        = tab;
            InitializeRunsControllerFields(SessionSource, profileRow);
            InitializeMasterControllerFields();

            ViewControllers = new UIViewController[] { masterNavigationController, runsSplitViewController };
        }
        public void initializeSessionControllerFields()
        {
            //CollectionViewTable = new CollectionViewController();


            SessionSource = new TableSourceSessions();
            sessions      = new SessionsTableViewController(SessionSource);

            //add delegate to the session source
            SessionSource.SessionRowToController += GetRowClickedFromSessionSource;
            SessionSource.HideTable += ShowCollectionsView;

            //navigation controller for 2nd(Nested splitview controllers
            NavigationController = new UINavigationController(sessions);
            NavigationController.NavigationBar.Translucent = false;
            sessionSplitViewController             = new SessionsSplitViewController(sessions, NavigationController);
            sessionSplitViewController.View.Hidden = true;
        }
 public void ReloadSessionTableData(TableSourceSessions sessions)
 {
     source       = (TableSourceSessions)sessions;
     table.Source = source;
     table.ReloadData();
 }