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