コード例 #1
0
        private void farpointFilter1_OnCheckFilterChanged(object sender, EventArgs arg)
        {
            CheckBox chk = (CheckBox)sender;

            //当Checkbox选中时,筛选过程中则将不符合条件的数据隐藏
            if (chk.Checked == true)
            {
                //禁用选择颜色相关控件
                farpointFilter1.EnableChooseColorCtrls(false);
                //设置自动隐藏过滤条件
                FarpointDefaultPropertiesSetter.SetFpFilterHideProperties(this.fpUserInformationDetails, _filterColunmIdxs);
            }
            else//未选中时,根据用户自定义的颜色进行分类显示
            {
                //启用选择颜色相关控件
                farpointFilter1.EnableChooseColorCtrls(true);
                //设置自定义过滤条件
                FarpointDefaultPropertiesSetter.SetFpCustomFilterProperties(this.fpUserInformationDetails, farpointFilter1.GetSelectedFitColor(), farpointFilter1.GetSelectedNotFitColor(), _filterColunmIdxs);
            }
        }
コード例 #2
0
        /// <summary>
        ///     farpointFilter1的OnCheckFilterChanged方法
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="arg"></param>
        private void farpointFilter1_OnCheckFilterChanged(object sender, EventArgs arg)
        {
            var chk = (CheckBox)sender;

            //当Checkbox选中时,筛选过程中则将不符合条件的数据隐藏
            if (chk.Checked)
            {
                //禁用选择颜色相关控件
                farpointFilter1.EnableChooseColorCtrls(false);
                //设置自动隐藏过滤条件
                FarpointDefaultPropertiesSetter.SetFpFilterHideProperties(fpGasConcentrationProbeDataInfo,
                                                                          _filterColunmIdxs);
            }
            //未选中时,根据用户自定义的颜色进行分类显示
            else
            {
                //启用选择颜色相关控件
                farpointFilter1.EnableChooseColorCtrls(true);
                //设置自定义过滤条件
                FarpointDefaultPropertiesSetter.SetFpCustomFilterProperties(fpGasConcentrationProbeDataInfo,
                                                                            farpointFilter1.GetSelectedFitColor(), farpointFilter1.GetSelectedNotFitColor(), _filterColunmIdxs);
            }
        }
コード例 #3
0
 private void farpointFilter1_OnClickNotFitColorBtnOK(object sender, EventArgs arg)
 {
     //根据新的颜色值设置自动隐藏过滤条件
     FarpointDefaultPropertiesSetter.SetFpCustomFilterProperties(_fpTunelInfo,
                                                                 farpointFilter1.GetSelectedFitColor(), farpointFilter1.GetSelectedNotFitColor(), _filterColunmIdxs);
 }
コード例 #4
0
 private void farpointFilter1_OnClickFitColorBtnOK(object sender, EventArgs arg)
 {
     //根据新的颜色值设置自动隐藏过滤条件
     FarpointDefaultPropertiesSetter.SetFpCustomFilterProperties(this.fpUserInformationDetails, farpointFilter1.GetSelectedFitColor(), farpointFilter1.GetSelectedNotFitColor(), _filterColunmIdxs);
 }