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

            form.SetSndAliasBank(sndAliasBank, useOriginalTreeStructure, outputDirectory);
            form.ShowDialog();
        }
        private void LoadSound(string path)
        {
            try
            {
                // Read the specified file.
                Cleanup();
                audioEntriesDataGridView.Rows.Clear();
                headerPropertyGrid.SelectedObject = null;

                _sndAliasBank = SndAliasBankReader.Read(path);
                _currentPath  = path;

                // Update the UI.
                Text = "Black Ops II Sound Studio by master131 - " + Path.GetFileName(path);
                UpdateHeaderInformation();
                UpdateAudioEntries();

                // Make the main controls visible.
                welcomeLabel.Visible             = false;
                mainSplitContainer.Visible       = true;
                saveAsToolStripMenuItem.Enabled  = true;
                saveToolStripMenuItem.Enabled    = true;
                refreshToolStripMenuItem.Enabled = true;
                SetLabelColumnWidth(headerPropertyGrid, 130);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Black Ops II Sound Studio", MessageBoxButtons.OK,
                                MessageBoxIcon.Exclamation);
            }
        }
 private void SetSndAliasBank(SndAliasBank sndAliasBank, bool useOriginalTreeStructure, string outputDirectory)
 {
     _sndAliasBank             = sndAliasBank;
     _useOriginalTreeStructure = useOriginalTreeStructure;
     _outputDirectory          = outputDirectory;
 }