public void AddCommand(Command NewCommand) { Commands.Add(NewCommand); Recog.LoadGrammar(new Grammar(new GrammarBuilder(new Choices(NewCommand.Commands.ToArray())) { Culture = System.Globalization.CultureInfo.CurrentCulture }) { Name = NewCommand.Name }); }
public void UnloadCommand(Command CommandToUnload) { Commands.Remove(CommandToUnload); }