private void DataRefresh() { if (fListRecords != null) { fListRecords.ListMan = null; fListRecords.Dispose(); fListRecords = null; } fListRecords = new GKListView(ListManager.Create(fBase.Context, fRecType)); fListRecords.ListMan.Filter.Clear(); fListRecords.ListMan.QuickFilter = fFilter; panList.Content = fListRecords; if (fRecType == GEDCOMRecordType.rtIndividual) { IndividualListFilter iFilter = (IndividualListFilter)fListRecords.ListMan.Filter; iFilter.Sex = NeedSex; if (fTarget.TargetMode == TargetMode.tmParent) { fListRecords.ListMan.ExternalFilter = ChildSelectorHandler; } } fListRecords.UpdateContents(); }
private void UpdateRecordsView() { if (fListRecords != null) { fListRecords.ListMan = null; fListRecords.Dispose(); fListRecords = null; } fListRecords = UIHelper.CreateRecordsView(panList, fController.Base.Context, fController.RecType); }