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