Exemplo n.º 1
0
 public override void InitializeComponent(ICore core)
 {
     core.Components.Configuration.GetElement <SelectionConfigurationElement>(
         FlacEncoderSettingsConfiguration.SECTION,
         FlacEncoderSettingsConfiguration.DEPTH_ELEMENT
         ).ConnectValue(option => this.Depth = FlacEncoderSettingsConfiguration.GetDepth(option));
     core.Components.Configuration.GetElement <IntegerConfigurationElement>(
         FlacEncoderSettingsConfiguration.SECTION,
         FlacEncoderSettingsConfiguration.COMPRESSION_ELEMENT
         ).ConnectValue(value => this.Compression = value);
     base.InitializeComponent(core);
 }
Exemplo n.º 2
0
 public IEnumerable <ConfigurationSection> GetConfigurationSections()
 {
     return(FlacEncoderSettingsConfiguration.GetConfigurationSections(this));
 }