// we need lazy creation
        private void make_fc()
        {
            if (_fc != null)
            {
                return;
            }

            _fc = new FieldExpressionControl();
            _popup.Controls.Add(_fc);
            _fc.Dock = DockStyle.Fill;

            //weak event
            _fc.OnCancel += (s, e) =>
            {
                _popupCloseKind = PopupCloseKind.Cancel;
                _popup.HidePopup();
            };
            //weak event
            _fc.OnOk += (s, e) =>
            {
                _popupCloseKind = PopupCloseKind.Confirm;
                _popup.HidePopup();
            };

            _fc.filterEditorControl.FilterControl.BeforeShowValueEditor += showvalueEditor_handler;
        }
 public FilterAspectForBindingSource(IDataBindingSource ds, IEditorsHost eh, BarManager bm)
 {
     _ds             = ds;
     _barManager     = bm;
     _popup          = new PopupControlContainer();
     _popup.CloseUp += popup_CloseUp;
     // _fc will be done when needed
     _fc = null;
     _eh = eh;
 }