public IBassEncoderSettings CreateSettings()
        {
            Logger.Write(this, LogLevel.Debug, "Creating settings for profile: {0}", this.Format.Value.Name);
            var format = BassEncoderBehaviourConfiguration.GetFormat(this.Format.Value);

            format.InitializeComponent(this.Core);
            return(format);
        }
Ejemplo n.º 2
0
 public override void InitializeComponent(ICore core)
 {
     this.FileSystemBrowser = core.Components.FileSystemBrowser;
     core.Components.Configuration.GetElement <SelectionConfigurationElement>(
         BassEncoderBehaviourConfiguration.SECTION,
         BassEncoderBehaviourConfiguration.DESTINATION_ELEMENT
         ).ConnectValue(value => this.Destination = BassEncoderBehaviourConfiguration.GetDestination(value));
     core.Components.Configuration.GetElement <TextConfigurationElement>(
         BassEncoderBehaviourConfiguration.SECTION,
         BassEncoderBehaviourConfiguration.DESTINATION_LOCATION_ELEMENT
         ).ConnectValue(value => this.SpecificFolder = value);
     this.SettingsFactory = ComponentRegistry.Instance.GetComponent <BassEncoderSettingsFactory>();
     base.InitializeComponent(core);
 }
Ejemplo n.º 3
0
 public override void InitializeComponent(ICore core)
 {
     this.FileSystemBrowser = core.Components.FileSystemBrowser;
     core.Components.Configuration.GetElement <SelectionConfigurationElement>(
         BassEncoderBehaviourConfiguration.SECTION,
         BassEncoderBehaviourConfiguration.DESTINATION_ELEMENT
         ).ConnectValue(value => this.Destination = BassEncoderBehaviourConfiguration.GetDestination(value));
     core.Components.Configuration.GetElement <TextConfigurationElement>(
         BassEncoderBehaviourConfiguration.SECTION,
         BassEncoderBehaviourConfiguration.DESTINATION_LOCATION_ELEMENT
         ).ConnectValue(value => this.SpecificFolder = value);
     core.Components.Configuration.GetElement <BooleanConfigurationElement>(
         BassEncoderBehaviourConfiguration.SECTION,
         BassEncoderBehaviourConfiguration.COPY_TAGS
         ).ConnectValue(value => this.CopyTags = value);
     core.Components.Configuration.GetElement <IntegerConfigurationElement>(
         BassEncoderBehaviourConfiguration.SECTION,
         BassEncoderBehaviourConfiguration.THREADS_ELEMENT
         ).ConnectValue(value => this.Threads = value);
     base.InitializeComponent(core);
 }
Ejemplo n.º 4
0
 public IEnumerable <ConfigurationSection> GetConfigurationSections()
 {
     return(BassEncoderBehaviourConfiguration.GetConfigurationSections());
 }