protected virtual void OnCommandEntering(CommandEnteringEventArgs e) { if (CommandEntering != null) { CommandEntering(this, e); } }
private void txtInput_TextChanged(object sender, EventArgs e) { // Fire the CommandEntering event first var commandEnteringArgs = new CommandEnteringEventArgs(txtInput.Text); OnCommandEntering(commandEnteringArgs); if (commandEnteringArgs.ToolTip != "") { HideToolTip(); ShowToolTip(commandEnteringArgs.ToolTip); } }