private EncodingTargetListViewItem CreateListViewItemFromTarget(EncodingTarget target)
 {
     return new EncodingTargetListViewItem()
     {
         EncodingTarget = target,
         Format = "MP3",
         Settings = VbrQualityDescriptions[target.Mp3Settings.VbrQuality]
     };
 }
        public SyncEncodingTargetWindow(ICollectionSessionFactory collectionSessionFactory, EncodingTarget encodingTarget)
            : base(collectionSessionFactory)
        {
            this.encodingTarget = encodingTarget;

            InitializeComponent();

            this.textLameVersion.Text = LameWriter.EncoderVersion;

            this.networkBox.CollectionManager = this.CollectionManager;
            this.networkBox.SettingsManager = this.SettingsManager;

            this.scanWrkerTask = new Task(this.WorkerTask);
            this.scanWrkerTask.Start();
        }
 private void btnAddTarget_Click(object sender, RoutedEventArgs e)
 {
     AddEncodingTargetWindow addTargetWindow = new AddEncodingTargetWindow();
     addTargetWindow.Owner = this;
     if (addTargetWindow.ShowDialog() == true)
     {
         EncodingTarget encodingTarget = new EncodingTarget()
         {
             TargetDirectory = addTargetWindow.TargetDirectory,
             FileNamingPattern = addTargetWindow.FileNamingPattern,
             Mp3Settings = new EncodingTargetMp3Settings()
             {
                 VbrQuality = addTargetWindow.VbrQuality
             }
         };
         this.CollectionManager.Settings.EncodingTargets.Add(encodingTarget);
         this.items.Add(this.CreateListViewItemFromTarget(encodingTarget));
     }
 }
 public EncodingTargetScanner(ICollectionManager collectionManager, EncodingTarget encodingTarget)
 {
     this.collectionManager = collectionManager;
     this.encodingTarget = encodingTarget;
 }