Inheritance: System.EventArgs
 public CommandSentEventArgs( CommandSendingEventArgs e )
 {
     Command = e.Command;
     Canceled = e.Canceled;
 }
Beispiel #2
0
 // Private method which realy Send commands, we don't allow client to use it directly.
 void DoSendCommand( object sender, string cmd )
 {
     CommandSendingEventArgs e = new CommandSendingEventArgs( cmd );
     if( CommandSending != null ) CommandSending( sender, e );
     if( CommandSent != null ) CommandSent( sender, new CommandSentEventArgs( e ) );
 }
 /// <summary>
 /// Method reacting from Command Sending event. Here, you can parse the command you want to listen
 /// before the command is really launches and do some stuff about it.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"><see cref="CommandSendingEventArgs"/> containing data about the command which
 /// is about to be send.</param>
 protected virtual void OnCommandSending( object sender, CommandSendingEventArgs e )
 {
 }