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));
        }
Пример #2
0
 public ImagesTableViewController(TableSourceRanImages ranImagesSource)
 {
     table = new UITableView();
     table.BackgroundColor = AppColors.LIGHT_TEAL;
     source       = ranImagesSource;
     View         = table;
     table.Source = source;
 }