private void EhSpeechSettings(object sender, RoutedEventArgs e) { var controller = new SpeechSettingsController(); controller.Initialize(Controller.Settings.SpeechSettings); controller.Synthesizer = _speech; var control = new SpeechSettingsControl(controller); var window = new DialogShellViewWpf(control); if (true == window.ShowDialog()) { controller.Apply(Controller.Settings.SpeechSettings); _speech.ApplySettings(Controller.Settings.SpeechSettings); } }
public SpeechSettingsControl(SpeechSettingsController controller) { Controller = controller; this.DataContext = controller; InitializeComponent(); }
public SpeechSettingsControl() { Controller = new SpeechSettingsController(); InitializeComponent(); }