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