Exemple #1
0
 public void SaveEqualizerSettings()
 {
     if (this.smpSettings != null)
     {
         var equalizerSettings = this.smpSettings.PlayerSettings.EqualizerSettings;
         if (equalizerSettings == null)
         {
             equalizerSettings = new EqualizerSettings {
                 Name = this.Name
             };
             this.smpSettings.PlayerSettings.EqualizerSettings = equalizerSettings;
         }
         equalizerSettings.GainValues = this.Bands.ToDictionary(b => b.BandCaption, b => b.Gain);
         equalizerSettings.IsEnabled  = this.IsEnabled;
     }
 }
 public void SaveEqualizerSettings()
 {
     if (this.smpSettings != null) {
     var equalizerSettings = this.smpSettings.PlayerSettings.EqualizerSettings;
     if (equalizerSettings == null) {
       equalizerSettings = new EqualizerSettings {Name = this.Name};
       this.smpSettings.PlayerSettings.EqualizerSettings = equalizerSettings;
     }
     equalizerSettings.GainValues = this.Bands.ToDictionary(b => b.BandCaption, b => b.Gain);
     equalizerSettings.IsEnabled = this.IsEnabled;
       }
 }