상속: CaveTube.CaveTalk.Utils.ViewModelBase
예제 #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");
        }
예제 #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");
        }