private void ShowOption() { var option = new OptionWindow(); var viewModel = new OptionWindowViewModel(); viewModel.OnClose += () => option.Close(); option.DataContext = viewModel; option.ShowDialog(); if (this.speechClient != null) { this.speechClient.Dispose(); } this.speechClient = ASpeechClient.CreateInstance(); this.ConnectSpeakApplication(); base.OnPropertyChanged("FontSize"); base.OnPropertyChanged("TopMost"); }