Exemplo n.º 1
0
 /// <summary>
 /// Removes a grammar provider from the collection.
 /// </summary>
 /// <param name="provider">Provider to remove.</param>
 public void RemoveGrammarProvider(GrammarProvider provider)
 {
     _grammarProviders.Remove(provider);
     OnGrammarChanged(new EventArgs());
 }
Exemplo n.º 2
0
 public VoiceActivatedApp()
     : base()
 {
     Provider = new GrammarProvider(null);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Adds a grammar provider to the collection.
 /// </summary>
 /// <param name="provider">Provider to add.</param>
 public void AddGrammarProvider(GrammarProvider provider)
 {
     provider.GrammarChanged += Provider_GrammarChanged;
     _grammarProviders.Add(provider);
     OnGrammarChanged(new EventArgs());
 }