void SSHUi_SendInput(object sender, SendInputEventArgs e) { if (SendInput != null) { SendInput(sender, e); } }
protected virtual void OnSendInput(SendInputEventArgs e) { var Handler = SendInput; if (Handler != null) { Handler(this, e); } }
public void CmdSendCommand_SendCommand(object sender, System.Windows.RoutedEventArgs e) { //No Command required, of no text is given if (CommandText.Length <= 0) { return; } var e2 = new SendInputEventArgs(); e2.SendCommand = CommandText; OnSendInput(e2); CommandText = ""; }