public SettingsControl(TextToSpeechConfiguration configuration)
        {
            InitializeComponent();

            this.configuration = configuration;

            viewModel = new SettingsViewModel
                            {
                                BuildBrokenPhrase = configuration.BuildBrokenPhrase,
                                BuildStillBrokenPhrase = configuration.BuildStillBrokenPhrase,
                                BuildFixedPhrase = configuration.BuildFixedPhrase
                            };

            DataContext = viewModel;
        }
 public void SetConfiguration(ConfigurationBase configuration)
 {
     this.configuration = configuration as TextToSpeechConfiguration;
     InitConfiguration();
 }
 public IConfigirationControl GetConfigControl()
 {
     this.configuration = this.configuration ?? new TextToSpeechConfiguration();
     InitConfiguration();
     return new SettingsControl(configuration);
 }