internal static void Export(SndAliasBank sndAliasBank, bool useOriginalTreeStructure, string outputDirectory)
        {
            var form = new ExportProgressForm();

            form.SetSndAliasBank(sndAliasBank, useOriginalTreeStructure, outputDirectory);
            form.ShowDialog();
        }
예제 #2
0
        private void exportAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool useOriginalTreeStructure = MessageBox.Show("Do you want to use the original tree structure used by Treyarch?",
                                                            "Black Ops II Sound Studio", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes;

            using (var folderBrowserDialog = new FolderBrowserDialog())
            {
                folderBrowserDialog.Description = "Select a directory to export to:";
                if (folderBrowserDialog.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                // Export.
                ExportProgressForm.Export(_sndAliasBank, useOriginalTreeStructure, folderBrowserDialog.SelectedPath);
            }
        }