public void RefreshRecordsView(GDMRecordType recType) { IListView 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++) { IListView listview = fTabParts[(int)rt].ListView; if (listview != null) { listview.UpdateContents(columnsChanged); } } AppHost.Instance.UpdateControls(false); }
private void UpdateFilter() { IListView 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(); }