示例#1
0
        private void ReloadConfig()
        {
            _filterConfigItems.Clear();

            //* ------------------------------- *
            //* 先读取本地个性配置
            //* ------------------------------- *
            //如果存在本地配置则以本主配置为准
            var filterConfig = new KzxGridDataFilterLocalConfig(_localConfigSection);

            //解决清除网格状态设置,不加载模块管理配置Bug
            //if (filterConfig.IsClear)
            //    return;

            if (filterConfig.Items != null && filterConfig.Items.Count != 0)
            {
                _filterConfigItems.AddRange(filterConfig.Items);
                return;
            }
             
        }
示例#2
0
 /// <summary>
 /// 保存配置到本地
 /// </summary>
 public void SaveConfigToLocal(List<KzxGridDataFilterItem> pItems)
 {
     var filterConfig = new KzxGridDataFilterLocalConfig(_localConfigSection);
     filterConfig.Reset(pItems);
     filterConfig.Save();
 }