Esempio n. 1
0
 private void AddMissing(CommandConfig command)
 {
     foreach (CommandConfig c in Commands)
     {
         if (c.Name == command.Name)
         {
             return;
         }
     }
     Commands.Add(command);
 }
Esempio n. 2
0
 private void AddMissing(CommandConfig command, List <CommandConfig> addedCommands)
 {
     foreach (CommandConfig c in Commands)
     {
         if (c.Name == command.Name)
         {
             addedCommands.Add(c);
             return;
         }
     }
     Commands.Add(command);
     addedCommands.Add(command);
 }
 public static int CommandComparer(CommandConfig a, CommandConfig b)
 {
   return a.Name.CompareTo(b.Name);
 }
 private void AddMissing(CommandConfig command)
 {
   foreach (CommandConfig c in Commands) {
     if (c.Name == command.Name) return;
   }
   Commands.Add(command);
 }
Esempio n. 5
0
 public static int CommandComparer(CommandConfig a, CommandConfig b)
 {
     return(a.Name.CompareTo(b.Name));
 }
 private void AddMissing(CommandConfig command, List<CommandConfig> addedCommands)
 {
   foreach (CommandConfig c in Commands) {
     if (c.Name == command.Name) {
       addedCommands.Add(c);
       return;
     }
   }
   Commands.Add(command);
   addedCommands.Add(command);
 }