//========================================================================================================================================
        //  PUBLIC CLASS PROPERTIES
        //========================================================================================================================================
        //========================================================================================================================================
        //  Constructor
        //========================================================================================================================================
        /// <summary>
        /// Initializes a new instance of the <see cref="TwoSplitTableViewExtended.ViewController"/> class.  Sets up our repo helper to help initialize
        /// data tha might normally exists or be setup in a real database situation.  For the purposes of this example we just use some hardcoded data
        /// and helper methods to simualte a database and repo.  The fake repositories are then initalized and used to help inject our sources with the
        /// correct data.  Once the table sources are instanciated we create our table views.
        /// </summary>
        public ViewController()
        {
//			dataSourceOne = new List<string> () {
//				"Data Object One",
//				"Data Object Two",
//				"Data Object Three",
//				"Data Object Four",
//				"Data Object Five"
//			};

            repoHelper = new FakeRepositorySeederHelper();

            fakeColorRowRepo   = new FakeColorRowRepository(repoHelper.initFakeColorRowsContext());
            fakeObjectListRepo = new FakeObjectListRepository(repoHelper.initFakeObjectListContext());

            TopTableSource                     = new TableViewSourceTop();
            BottomTableColorCellSource         = new TableViewSourceColorCells(repoHelper.initBottomTableStructure(), fakeColorRowRepo);
            BottomTableSelectableObjectsSource = new TableViewSourceSelectableObjects(fakeObjectListRepo);

            TopTableView    = new UITableView();
            BottomTableView = new UITableView(CoreGraphics.CGRect.Empty, UITableViewStyle.Grouped);
        }
Example #2
0
 //========================================================================================================================================
 //  PUBLIC CLASS PROPERTIES
 //========================================================================================================================================
 //========================================================================================================================================
 //  Constructor
 //========================================================================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="TwoSplitTableViewExtended.TableViewSourceSelectableObjects"/> class.
 /// </summary>
 public TableViewSourceSelectableObjects(FakeObjectListRepository repo)
 {
     this.repo = repo;
 }