/// <summary>
        /// 读取配置
        /// </summary>
        public void Read()
        {
            var iniFile     = new IniFile(_filePath);
            var configValue = iniFile.IniReadValue(_section, _configKey);
            var items       = KzxGridDataFilterItem.ToFilterItems(configValue);

            _items.Clear();
            _items.AddRange(items);
        }
예제 #2
0
        /// <summary>
        /// 读取配置
        /// </summary>
        public void Read()
        {
            var iniFile     = new IniFileCore(_filePath);
            var clearValue  = iniFile.Read(_section, _clearConfigKey);
            var filterValue = iniFile.Read(_section, _filterConfigKey);
            var items       = KzxGridDataFilterItem.ToFilterItems(filterValue);

            _items.Clear();
            _items.AddRange(items);

            _isClear = string.Equals("True", clearValue);
        }