コード例 #1
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);
 }
コード例 #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);
     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);
 }