Exemple #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]);
     }
 }
Exemple #2
0
 public void Detach(Commandable command)
 {
     this.Commands.Remove(command);
 }
Exemple #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);
 }