//========================================================================================================================================
        //  PUBLIC CLASS PROPERTIES
        //========================================================================================================================================
        //========================================================================================================================================
        //  Constructor
        //========================================================================================================================================
        /// <summary>
        /// Initializes a new instance of the <see cref="ContactPicker.ViewController"/> class.  Sets up our repo helper to help initialize
        /// data tha might normally exists in the users contacts. 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.  We also check our contacts access first to make sure the user
        /// has granted access to their contacts.
        /// </summary>
        public ViewController()
        {
            access             = AppDelegate.Self.checkContactsAuth();
            repoHelper         = new FakeRepositorySeederHelper(access);
            fakeObjectListRepo = new FakeObjectListRepository(repoHelper.initFakeObjectListContext());

            TopTableSource = new TableViewSourceTop();
            BottomTableSelectableObjectsSource = new TableViewSourceSelectableObjects(fakeObjectListRepo);

            TopTableView    = new UITableView();
            BottomTableView = new UITableView(CoreGraphics.CGRect.Empty, UITableViewStyle.Plain);
        }
Exemple #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;
 }