Ejemplo n.º 1
0
        public void RefreshRecordsView(GDMRecordType recType)
        {
            IListView rView = GetRecordsViewByType(recType);

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

                AppHost.Instance.UpdateControls(false);
            }
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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();
        }