Inheritance: CaveTube.CaveTalk.Utils.ViewModelBase
Esempio n. 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");
        }
Esempio n. 2
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");
        }