コード例 #1
0
        //-------------------------------------------------------------------------------
        #region ** IC1ColumnFilterEditor

        public void Initialize(C1.Win.FlexGrid.C1FlexGridBase grid, int columnIndex, C1.Win.FlexGrid.IC1ColumnFilter filter)
        {
            _filter = (StringFilter)filter;

            // initialize checkbox values
            foreach (var pt in _filter.Ranges)
            {
                switch ((char)pt.X)
                {
                case 'A':
                    _chkAE.Checked = true;
                    break;

                case 'F':
                    _chkFJ.Checked = true;
                    break;

                case 'K':
                    _chkKO.Checked = true;
                    break;

                case 'P':
                    _chkPT.Checked = true;
                    break;

                case 'U':
                    _chkUZ.Checked = true;
                    break;
                }
            }
        }
コード例 #2
0
        //-------------------------------------------------------------------------------
        #region ** IC1ColumnFilterEditor

        public void Initialize(C1.Win.FlexGrid.C1FlexGridBase grid, int columnIndex, C1.Win.FlexGrid.IC1ColumnFilter filter)
        {
            _filter = (DateFilter)filter;

            // TODO:
            // a really useful editor would set the calendar/checkboxes to match the current
            // filter values.
        }
コード例 #3
0
        //-------------------------------------------------------------------------------
        #region ** IC1ColumnFilterEditor Members

        public void Initialize(C1.Win.FlexGrid.C1FlexGridBase grid, int columnIndex, C1.Win.FlexGrid.IC1ColumnFilter filter)
        {
            // store reference to filter
            _filter = filter as ColorFilter;

            // initialize editor
            _target.BackColor = _filter.TargetColor;
            _threshold.Value  = _filter.Tolerance;
        }