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