예제 #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);
 }