public virtual void AddCommand(ModuleCommand command) { command.Module = this; commands.Add(command); if (CommandsChanged != null) { CommandsChanged(this, null); } }
public virtual void RemoveCommand(ModuleCommand command) { if (commands.Contains(command)) { commands.Remove(command); if (CommandsChanged != null) { CommandsChanged(this, null); } } }
public UserModuleCommand(ModuleCommand command) { this.Command = command; }
public virtual void AddCommand(ModuleCommand command) { AddCommand(new UserModuleCommand(command)); }