예제 #1
0
 /// <summary>
 /// Attach commands to this manager.
 /// </summary>
 /// <param name="commands">An array of Command, contained commands which need to be managed</param>
 public void Attach(Commandable[] commands)
 {
     int i;
     for (i = 0; i < commands.Length; i++) {
         this.Attach(commands[i]);
     }
 }
예제 #2
0
 public void Detach(Commandable command)
 {
     this.Commands.Remove(command);
 }
예제 #3
0
 /// <summary>
 /// Attach a command to this manager.
 /// </summary>
 /// <param name="command">Command which need to be managed</param>
 public void Attach(Commandable command)
 {
     this.Commands.Add(command);
     command.UpdateMessage += new SMTP.Commands.CommandEvent.CommandEventHandler(OnUpdateMessage);
 }