void SetupDataErrorsTabController() { var errorsAndFixesTabViewController = ChildViewControllers[2] as ListsTabViewController; RemoveOldTabs(errorsAndFixesTabViewController); dataErrorsViewController = new BindingListViewController <IDisplayDataError>("Data Errors", "Double click to show Individual/Family with this error."); //duplicatesViewController = new BindingListViewController<IDisplayDuplicateIndividual>("Duplicates", "Double click to show the facts for both the individual and their possible match."); looseBirthsViewController = new BindingListViewController <IDisplayLooseBirth> ("Loose Births", "List of Births where you could limit the date range.\nDouble click to show a list of facts for the selected individual."); looseDeathsViewController = new BindingListViewController <IDisplayLooseDeath> ("Loose Deaths", "List of Deaths where you could limit the date range.\nDouble click to show a list of facts for the selected individual."); errorsAndFixesTabViewController.AddChildViewController(dataErrorsViewController); //errorsAndFixesTabViewController.AddChildViewController(duplicatesViewController); errorsAndFixesTabViewController.AddChildViewController(looseBirthsViewController); errorsAndFixesTabViewController.AddChildViewController(looseDeathsViewController); dataErrorsViewController.DataErrorRowClicked += DataErrorRowClicked; looseBirthsViewController.IndividualFactRowClicked += LooseBirthFactRowClicked; looseDeathsViewController.IndividualFactRowClicked += LooseDeathFactRowClicked; }
void SetupMainListsTabController() { var mainListsViewController = ChildViewControllers[1] as ListsTabViewController; RemoveOldTabs(mainListsViewController); individualsViewController = new BindingListViewController <IDisplayIndividual>("Individuals", "Double click to show a list of facts for the selected individual."); familiesViewController = new BindingListViewController <IDisplayFamily>("Families", "Double click to show a list of facts for the selected family."); sourcesViewController = new BindingListViewController <IDisplaySource>("Sources", "Double click to show a list of facts referenced by the selected source."); occupationsViewController = new BindingListViewController <IDisplayOccupation>("Occupations", "Double click to show a list of individuals with that occupation."); factsViewController = new BindingListViewController <IDisplayFact>("Facts", string.Empty); mainListsViewController.AddChildViewController(individualsViewController); mainListsViewController.AddChildViewController(familiesViewController); mainListsViewController.AddChildViewController(sourcesViewController); mainListsViewController.AddChildViewController(occupationsViewController); mainListsViewController.AddChildViewController(factsViewController); individualsViewController.IndividualFactRowClicked += IndividualsFactRowClicked; familiesViewController.FamilyFactRowClicked += FamiliesFactRowClicked; occupationsViewController.OccupationRowClicked += OccupationRowClicked; sourcesViewController.SourceFactRowClicked += SourcesFactRowClicked; }
public PeopleViewController(IntPtr handle) : base(handle) { _individualsViewController = new BindingListViewController <IDisplayIndividual>("Individuals", "Double click to show a list of facts for the selected individual."); _familiesViewController = new BindingListViewController <IDisplayFamily>("Families", "Double click to show a list of facts for the selected family."); }