Пример #1
0
        private void txtFind_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            if (OnFindClick == null)
            {
                return;
            }
            FindEventArg arg = new FindEventArg();

            arg.Text           = btnExpand.Text;
            arg.IsAdvancedFind = _FindExpanded;
            if (OnFindClick != null)
            {
                OnFindClick(this, arg);
            }
        }
Пример #2
0
        private void txtFind_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (OnFindTextBoxEnter == null)
            {
                return;
            }
            if (e.KeyChar != (char)Keys.Enter)
            {
                return;
            }
            FindEventArg arg = new FindEventArg();

            arg.Text           = btnExpand.Text;
            arg.IsAdvancedFind = _FindExpanded;
            OnFindTextBoxEnter(this, arg);
        }