示例#1
0
        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();
        }
示例#2
0
        public void RefreshRecordsView(GDMRecordType recType)
        {
            IListViewEx rView = GetRecordsViewByType(recType);

            if (rView != null)
            {
                rView.UpdateContents();

                AppHost.Instance.UpdateControls(false);
            }
        }
示例#3
0
        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);
        }
示例#4
0
        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();
        }