示例#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;
     }
 }
示例#2
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;
       }
 }