Пример #1
0
 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 });
 }
Пример #2
0
 public void UnloadCommand(Command CommandToUnload)
 {
     Commands.Remove(CommandToUnload);
 }