public override void InitializeComponent(ICore core) { core.Components.Configuration.GetElement <SelectionConfigurationElement>( WavPackSettingsConfiguration.SECTION, WavPackSettingsConfiguration.DEPTH_ELEMENT ).ConnectValue(option => this.Depth = WavPackSettingsConfiguration.GetDepth(option)); core.Components.Configuration.GetElement <IntegerConfigurationElement>( WavPackSettingsConfiguration.SECTION, WavPackSettingsConfiguration.COMPRESSION_ELEMENT ).ConnectValue(value => this.Compression = value); core.Components.Configuration.GetElement <IntegerConfigurationElement>( WavPackSettingsConfiguration.SECTION, WavPackSettingsConfiguration.PROCESSING_ELEMENT ).ConnectValue(value => this.Processing = value); core.Components.Configuration.GetElement <IntegerConfigurationElement>( WavPackSettingsConfiguration.SECTION, WavPackSettingsConfiguration.BITRATE_ELEMENT ).ConnectValue(value => this.Bitrate = value); core.Components.Configuration.GetElement <BooleanConfigurationElement>( WavPackSettingsConfiguration.SECTION, WavPackSettingsConfiguration.HYBRID_ELEMENT ).ConnectValue(value => this.Hybrid = value); core.Components.Configuration.GetElement <BooleanConfigurationElement>( WavPackSettingsConfiguration.SECTION, WavPackSettingsConfiguration.CORRECTION_ELEMENT ).ConnectValue(value => this.Correction = value); base.InitializeComponent(core); }
public IEnumerable <ConfigurationSection> GetConfigurationSections() { return(WavPackSettingsConfiguration.GetConfigurationSections(this)); }