internal void LoadErrorsAndFixes(ProgressController progressController) { if (!ErrorsAndFixesLoaded) { Task.Run(() => { InvokeOnMainThread(() => progressController.ShowWindow(this)); progressController.ProgressBar = 0; progressController.ProgressText = "Loading Data Errors. Please Wait"; // Flatten the data error groups into a single list until filtering implemented. var errors = new SortableBindingList <IDisplayDataError>(_familyTree.AllDataErrors); dataErrorsViewController.RefreshDocumentView(errors); progressController.ProgressBar = 25; //duplicatesViewController.RefreshDocumentView(new SortableBindingList<IDisplayDuplicateIndividual>()); progressController.ProgressBar = 50; progressController.ProgressText = "Loading Loose Births. Please Wait"; looseBirthsViewController.RefreshDocumentView(_familyTree.LooseBirths()); progressController.ProgressBar = 75; progressController.ProgressText = "Loading Loose Deaths. Please Wait"; looseDeathsViewController.RefreshDocumentView(_familyTree.LooseDeaths()); progressController.ProgressBar = 100; ErrorsAndFixesLoaded = true; InvokeOnMainThread(progressController.Close); }); } }
internal void LoadMainLists(ProgressController progressController) { if (!MainListsLoaded) { Task.Run(() => { InvokeOnMainThread(() => progressController.ShowWindow(this)); progressController.ProgressBar = 0; progressController.ProgressText = "Loading Individuals Data. Please Wait"; individualsViewController.RefreshDocumentView(_familyTree.AllDisplayIndividuals); progressController.ProgressBar = 20; progressController.ProgressText = "Loading Families Data. Please Wait"; familiesViewController.RefreshDocumentView(_familyTree.AllDisplayFamilies); progressController.ProgressBar = 40; progressController.ProgressText = "Loading Sources Data. Please Wait"; sourcesViewController.RefreshDocumentView(_familyTree.AllDisplaySources); progressController.ProgressBar = 60; progressController.ProgressText = "Loading Occupations Data. Please Wait"; occupationsViewController.RefreshDocumentView(_familyTree.AllDisplayOccupations); progressController.ProgressBar = 80; progressController.ProgressText = "Loading Facts Data. Please Wait"; factsViewController.RefreshDocumentView(_familyTree.AllDisplayFacts); progressController.ProgressBar = 100; MainListsLoaded = true; InvokeOnMainThread(progressController.Close); }); } }
public void LoadFamilies(SortableBindingList <IDisplayFamily> list) { if (!NSThread.IsMain) { InvokeOnMainThread(() => LoadFamilies(list)); return; } HideFamilies(false); _familiesViewController.RefreshDocumentView(list); SortFamilies(); }
public void LoadIndividuals(SortableBindingList <IDisplayIndividual> list) { if (!NSThread.IsMain) { InvokeOnMainThread(() => LoadIndividuals(list)); return; } HideIndividuals(false); _individualsViewController.RefreshDocumentView(list); SortIndividuals(); }