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); }
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); }
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); }
public IEnumerable <ConfigurationSection> GetConfigurationSections() { return(BassEncoderBehaviourConfiguration.GetConfigurationSections()); }