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); } }
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); }