Example #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="filter">OutPutFilters</param>
        /// <param name="readOnly"></param>
        public FilterTab(OutPutFilters filter, bool readOnly = false)
        {
            _filter  = filter;
            ReadOnly = readOnly;
            InitializeComponent();
            listViewDefinedTypes.UpdatedListView += SetPreDefinedTypes;
            if (readOnly)
            {
                listViewDefinedTypes.SetReadOnly();
            }
            _common    = (PropertySetFilters)tabPropertyCtr.TabPages["tabCommon"].Controls["pSetFiltersCommon"];
            _zone      = (PropertySetFilters)tabPropertyCtr.TabPages["tabZone"].Controls["pSetFiltersZone"];
            _type      = (PropertySetFilters)tabPropertyCtr.TabPages["tabType"].Controls["pSetFiltersType"];
            _space     = (PropertySetFilters)tabPropertyCtr.TabPages["tabSpace"].Controls["pSetFiltersSpace"];
            _floor     = (PropertySetFilters)tabPropertyCtr.TabPages["tabFloor"].Controls["pSetFiltersFloor"];
            _facility  = (PropertySetFilters)tabPropertyCtr.TabPages["tabFacility"].Controls["pSetFiltersFacility"];
            _spare     = (PropertySetFilters)tabPropertyCtr.TabPages["tabSpare"].Controls["pSetFiltersSpare"];
            _component = (PropertySetFilters)tabPropertyCtr.TabPages["tabComponent"].Controls["pSetFiltersComponent"];

            Init(_filter);

            if (!readOnly)
            {
                return;
            }
            chkListBoxComp.ItemCheck += chkList_OnItemCheck;
            chkListBoxType.ItemCheck += chkList_OnItemCheck;
            chkListBoxAss.ItemCheck  += chkList_OnItemCheck;
        }
Example #2
0
 /// <summary>
 /// Set Up Property Name Exclusions
 /// </summary>
 /// <param name="pSetFilter">PropertySetFilters</param>
 /// <param name="filter">PropertyFilter</param>
 private void SetUpPropertNameLists(PropertySetFilters pSetFilter, PropertyFilter filter)
 {
     pSetFilter.FillLists(filter, ReadOnly);
 }