public override void UpdateView() { string flt = fView.FilterBox.Text; if (string.IsNullOrEmpty(flt)) { flt = "*"; } else if (flt != "*") { flt = "*" + flt + "*"; } IListViewEx recordsList = fView.RecordsList; recordsList.ListMan.Filter.Clear(); recordsList.ListMan.QuickFilter = flt; if (fRecType == GDMRecordType.rtIndividual) { IndividualListFilter iFilter = (IndividualListFilter)recordsList.ListMan.Filter; iFilter.Sex = fTarget.NeedSex; if (fTarget.TargetMode == TargetMode.tmParent) { recordsList.ListMan.ExternalFilter = ChildSelectorHandler; } } recordsList.UpdateContents(); }
public void RefreshRecordsView(GDMRecordType recType) { IListViewEx rView = GetRecordsViewByType(recType); if (rView != null) { rView.UpdateContents(); AppHost.Instance.UpdateControls(false); } }
public void RefreshLists(bool columnsChanged) { for (var rt = GDMRecordType.rtIndividual; rt <= GDMRecordType.rtLocation; rt++) { IListViewEx listview = fTabParts[(int)rt].ListView; if (listview != null) { listview.UpdateContents(columnsChanged); } } AppHost.Instance.UpdateControls(false); }
private void UpdateFilter() { IListViewEx recordsList = fView.RecordsList; recordsList.ListMan.Filter.Clear(); recordsList.ListMan.QuickFilter = fFilter; if (fRecType == GDMRecordType.rtIndividual) { IndividualListFilter iFilter = (IndividualListFilter)recordsList.ListMan.Filter; iFilter.Sex = fTarget.NeedSex; if (fTarget.TargetMode == TargetMode.tmParent) { recordsList.ListMan.ExternalFilter = ChildSelectorHandler; } } recordsList.UpdateContents(); }