public void Export(string musicExportDir)
        {
            Console.WriteLine("Exporting music from: " + musicExportDir);
            prog.ClearLog();

            DialogResult confirmResult = MessageBox.Show(
                "About to export all songs in current directory to '"
                + musicExportDir + "'. Existing *.brstm files may be overwritten."
                + "\nDo you want to continue?",
                "Confirm Overwrite", MessageBoxButtons.OKCancel);

            if (confirmResult != DialogResult.OK)
            {
                return;
            }

            DirectoryInfo exportDir = new DirectoryInfo(musicExportDir);

            prog.ProgressTitle        = "Exporting songs...";
            prog.InProgressLabel      = "Exporting songs...";
            prog.ProgressCompletionAt = 100;

            BackgroundWorker bgw = SetupBackgroundExport(exportDir, prog);

            bgw.RunWorkerAsync();

            prog.ShowDialog();
        }
        public void Import(string musicImportDir)
        {
            Log("Importing music from: " + musicImportDir);
            prog.ClearLog();

            var importDir = new DirectoryInfo(musicImportDir);

            FileInfo[] brstmFiles = importDir.GetFiles("*.brstm", SearchOption.AllDirectories);
            if (brstmFiles.Length == 0)
            {
                MessageBox.Show("No *.brstm files were found in the selected directory!");
                return;
            }
            var confirmResult = MessageBox.Show("About to import from: " + musicImportDir
                                                + "\nThis will overwrite info.pac, mu_menumain and the GCT codeset. "
                                                + "It is recommended to make a backup before continuing."
                                                + "\nDo you want to continue?", "Confirm Import", MessageBoxButtons.OKCancel);

            if (confirmResult != DialogResult.OK)
            {
                return;
            }

            prog.ProgressTitle        = "Importing songs...";
            prog.InProgressLabel      = "Importing songs...";
            prog.ProgressCompletionAt = 100;

            var bgw = SetupBackgroundImport(brstmFiles, prog);

            bgw.RunWorkerAsync();

            prog.ShowDialog();
        }