private void RefreshAllDiscs()
        {
            int discNumber = 1;

            foreach (TabItem tab in this.tabs.Items)
            {
                EditReleaseDiscEditor discEditor = (EditReleaseDiscEditor)tab.Content;
                discEditor.SetData(this.release, discNumber);
                discNumber++;
            }
        }
        public EditReleaseWindow(ICollectionSessionFactory sessionFactory, string releaseId)
            : base(sessionFactory)
        {
            this.release = this.CollectionManager.GetReleaseById(releaseId);

            InitializeComponent();

            this.detailsEditor.Release = this.release;
            this.imagesEditor.CollectionManager = this.CollectionManager;
            this.imagesEditor.Release = this.release;
            this.additionalFilesEditor.Release = this.release;

            for (int i = 1; i <= this.release.DiscCount; ++i)
            {
                EditReleaseDiscEditor discEditor = new EditReleaseDiscEditor();
                discEditor.SetData(this.release, i);

                this.tabs.Items.Add(new TabItem()
                {
                    Header = "Disc " + i,
                    Content = discEditor
                });
            }
        }
        public EditReleaseWindow(ICollectionSessionFactory sessionFactory, string releaseId)
            : base(sessionFactory)
        {
            this.release = this.CollectionManager.GetReleaseById(releaseId);

            InitializeComponent();

            this.detailsEditor.Release          = this.release;
            this.imagesEditor.CollectionManager = this.CollectionManager;
            this.imagesEditor.Release           = this.release;
            this.additionalFilesEditor.Release  = this.release;

            for (int i = 1; i <= this.release.DiscCount; ++i)
            {
                EditReleaseDiscEditor discEditor = new EditReleaseDiscEditor();
                discEditor.SetData(this.release, i);

                this.tabs.Items.Add(new TabItem()
                {
                    Header  = "Disc " + i,
                    Content = discEditor
                });
            }
        }