/// <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"); }
/// <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; }