Inheritance: CaveTube.CaveTalk.Utils.ViewModelBase
Beispiel #1
0
        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");
        }
        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");
        }