コード例 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="synthesizerManager"></param>
 /// <param name="mailSender"></param>
 public MainWindowViewModel(SpeechSynthesizerManager synthesizerManager, MailSender mailSender)
 {
     this.synthesizerManager = synthesizerManager;
     this.mailSender         = mailSender;
     CommonPhrasesViewModel  = new CommonPhrasesViewModel(this.synthesizerManager);
     autocomplete            = new Autocomplete("proverbs.txt");
 }
コード例 #2
0
 /// <summary>
 /// Allow the voice to be used in the view
 /// </summary>
 /// <param name="synthesizerManager">Speech synthesizer of Microsoft that can convert text to voice</param>
 public CommonPhrasesViewModel(SpeechSynthesizerManager synthesizerManager)
 {
     this.synthesizerManager = synthesizerManager;
 }