Пример #1
0
 protected virtual void OnCommandEntering(CommandEnteringEventArgs e)
 {
     if (CommandEntering != null)
     {
         CommandEntering(this, e);
     }
 }
Пример #2
0
        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);
            }
        }