Inheritance: System.EventArgs
コード例 #1
0
 public CommandSentEventArgs( CommandSendingEventArgs e )
 {
     Command = e.Command;
     Canceled = e.Canceled;
 }
コード例 #2
0
ファイル: CommandManager.cs プロジェクト: rit3k/ck-certified
 // 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 ) );
 }
コード例 #3
0
 /// <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 )
 {
 }