private void toolStripTextBoxSearch_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (int)Keys.Return) { SearchNext?.Invoke(toolStripTextBoxSearch.TextBox.Text); e.Handled = true; } }
private void toolStripButtonSearch_Click(object sender, EventArgs e) { SearchNext?.Invoke(toolStripTextBoxSearch.TextBox.Text); }
/* ----------------------------------------------------------------- */ /// /// OnSearchNext /// /// <summary> /// SearchNext イベントを発生させます。 /// </summary> /// /* ----------------------------------------------------------------- */ protected virtual void OnSearchNext(EventArgs e) => SearchNext?.Invoke(this, e);