コード例 #1
0
        private void MainWindow_OnClosing(object sender, CancelEventArgs e)
        {
            AppSettingsManager.Save(this.AppSettings);

            if (this.AppSettings.ServerName != this.DeviceStateSetter.Server)
            {
                this.DeviceStateSetter= new DeviceStateSetter(this.AppSettings.ServerName);
            }
        }
コード例 #2
0
 private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
 {
     this.DeviceStateSetter = new DeviceStateSetter(this.AppSettings.ServerName);
     this.SetupSpeech();
 }