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); } }
private void MainWindow_OnLoaded(object sender, RoutedEventArgs e) { this.DeviceStateSetter = new DeviceStateSetter(this.AppSettings.ServerName); this.SetupSpeech(); }