private void ShowFilter()
        {
            if (_currentGrid == null)
            {
                return;
            }
            var frm = new FrmFilter(_currentGrid.Filter, _currentGrid.Headers.Select(p => p.Value.HeaderName).ToList())
            {
                StartPosition = FormStartPosition.CenterParent
            };

            frm.ShowDialog(this);
            RecalcFilterBox(_currentGrid.Filter);
            ApplyFilter();
        }
Пример #2
0
        private void ShowFilter()
        {
            if (_currentTab.SelectedTab == null)
            {
                return;
            }
            var wrapper = _gridAndData[(string)_currentTab.SelectedTab.Tag];
            var frm     = new FrmFilter(wrapper.GridAndDataWrapper.Filter, wrapper.GridAndDataWrapper.Headers.Select(p => p.Value.HeaderName).ToList())
            {
                StartPosition = FormStartPosition.CenterParent
            };

            frm.ShowDialog(this);
            RecalcFilterBox(wrapper.GridAndDataWrapper.Filter);
            wrapper.GridWrapperControl.ApplyFilter(wrapper.GridAndDataWrapper.Filter);
        }