private void ButtonImportCDs_Click(object sender, RoutedEventArgs e)
        {
            // Alle markierten CDs in den aktuellen Katalog übernehmen.
            foreach (CDItemResult item in DataGridResult.SelectedItems)
            {
                if (CurrentCD != null)
                {
                    /*CString sSaveIdentity = CD->Identity;
                     * int iSaveNumberOfTracks = CD->NumberOfTracks;
                     * Big3::Hitbase::DataBaseEngine::CD^ cd = gcnew Big3::Hitbase::DataBaseEngine::CD();
                     * BOOL bError = FALSE;
                     * BOOL bCanceled = FALSE;
                     *
                     * cd->Identity = gcnew String(m_saIdentities[iSelItem]);
                     *
                     * theApp.m_CDArchives->DownloadCD(gcnew IntPtr(pHttpConnection), cd, bCanceled, bError, TRUE);
                     *
                     * CD = cd;
                     *
                     * CD->Identity = gcnew String(sSaveIdentity);
                     * CD->NumberOfTracks = iSaveNumberOfTracks;*/
                }
                else
                {
                    CD  cd       = new CD();
                    int error    = 0;
                    int canceled = 0;

                    CDArchiveConfig cdArchiveConfig = ((ComboBoxArchiveItem)ComboBoxCDArchives.SelectedItem).ArchiveConfig;

                    if (cdArchiveConfig.Type == CDArchiveType.BIG3)
                    {
                        cd.Identity = item.Identity;

                        CCDArchive cdarchive = new CCDArchive();

                        cdarchive.SearchCDInInternetBig3(cdArchiveConfig, cd, ref canceled, ref error);
                    }

                    if (cdArchiveConfig.Type == CDArchiveType.CDArchiveLocal)
                    {
                        cd.Identity = item.Identity;

                        CCDArchive cdarchive = new CCDArchive();

                        CDArchiveLocalFile.SearchCDInCDArchiveLocalFile(cdArchiveConfig.ArchiveName, cd);
                    }

                    cd.Save(dataBase);
                }
            }

            Close();
        }
        private void ShowDetails()
        {
            CD  cd       = new CD();
            int error    = 0;
            int canceled = 0;

            CDItemResult selItem = ((CDItemResult)this.DataGridResult.SelectedItem);

            if (selItem == null)
            {
                return;
            }

            CDArchiveConfig cdArchiveConfig = ((ComboBoxArchiveItem)ComboBoxCDArchives.SelectedItem).ArchiveConfig;

            if (cdArchiveConfig.Type == CDArchiveType.BIG3)
            {
                cd.Identity = selItem.Identity;

                CCDArchive cdarchive = new CCDArchive();

                cdarchive.SearchCDInInternetBig3(cdArchiveConfig, cd, ref canceled, ref error);
            }

            if (cdArchiveConfig.Type == CDArchiveType.CDArchiveLocal)
            {
                cd.Identity = selItem.Identity;

                CCDArchive cdarchive = new CCDArchive();

                CDArchiveLocalFile.SearchCDInCDArchiveLocalFile(cdArchiveConfig.ArchiveName, cd);
            }

            WindowAlbum windowAlbum = new WindowAlbum(cd, dataBase);

            windowAlbum.SaveAlbumOnOK = false;
            windowAlbum.ShowDialog();
        }