private void RefreshAllDiscs()
 {
     foreach (TabItem tab in this.tabs.Items)
     {
         ImportTracksDiscEditor discEditor = (ImportTracksDiscEditor)tab.Content;
         ObservableCollection <ImportTrackItem> trackList = discEditor.Tracks;
         discEditor.Tracks = null;
         discEditor.Tracks = trackList;
     }
 }
 private void UpdateRelease()
 {
     this.detailsEditor.CommitChanges(this.CollectionManager);
     foreach (TabItem tab in this.tabs.Items)
     {
         ImportTracksDiscEditor discEditor = (ImportTracksDiscEditor)tab.Content;
         discEditor.CommitChanges(this.CollectionManager);
     }
     ThumbnailGenerator.UpdateReleaseThumbnail(this.DatabaseRelease, this.imagesEditor);
     this.DatabaseRelease.DateAdded         = DateTime.Now;
     this.DatabaseRelease.DateModified      = DateTime.Now;
     this.DatabaseRelease.DateAudioModified = DateTime.Now;
 }
        private void AddDisc()
        {
            ObservableCollection <ImportTrackItem> disc = new ObservableCollection <ImportTrackItem>();

            this.Release.Discs.Add(disc);

            ImportTracksDiscEditor discEditor = new ImportTracksDiscEditor(this.CollectionManager)
            {
                Disc    = this.Release.Discs.Count,
                Tracks  = disc,
                Release = this.DatabaseRelease
            };

            discEditor.ItemAdding += new EventHandler <TrackAddingEventArgs>(discEditor_ItemAdding);

            this.tabs.Items.Add(new TabItem()
            {
                Header  = "Disc " + this.Release.Discs.Count,
                Content = discEditor
            });
            this.tabs.SelectedIndex = this.tabs.Items.Count - 1;
        }
        private void AddDisc()
        {
            ObservableCollection<ImportTrackItem> disc = new ObservableCollection<ImportTrackItem>();
            this.Release.Discs.Add(disc);

            ImportTracksDiscEditor discEditor = new ImportTracksDiscEditor(this.CollectionManager)
            {
                Disc = this.Release.Discs.Count,
                Tracks = disc,
                Release = this.DatabaseRelease
            };
            discEditor.ItemAdding += new EventHandler<TrackAddingEventArgs>(discEditor_ItemAdding);

            this.tabs.Items.Add(new TabItem()
            {
                Header = "Disc " + this.Release.Discs.Count,
                Content = discEditor
            });
            this.tabs.SelectedIndex = this.tabs.Items.Count - 1;
        }