Beispiel #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="filter">OutPutFilters</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)
            {
                chkListBoxComp.ItemCheck += new ItemCheckEventHandler(this.chkList_OnItemCheck);
                chkListBoxType.ItemCheck += new ItemCheckEventHandler(this.chkList_OnItemCheck);
                chkListBoxAss.ItemCheck += new ItemCheckEventHandler(this.chkList_OnItemCheck); 
            }
        }
Beispiel #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="filter">OutPutFilters</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)
            {
                chkListBoxComp.ItemCheck += new ItemCheckEventHandler(this.chkList_OnItemCheck);
                chkListBoxType.ItemCheck += new ItemCheckEventHandler(this.chkList_OnItemCheck);
                chkListBoxAss.ItemCheck  += new ItemCheckEventHandler(this.chkList_OnItemCheck);
            }
        }
Beispiel #3
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);
 }
Beispiel #4
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);
 }