BSA_Browser.BSABrowser.ExtractFiles(string, bool, bool, params ArchiveEntry[])

Here are the examples of the csharp api class BSA_Browser.BSABrowser.ExtractFiles(string, bool, bool, params ArchiveEntry[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

5 Examples 7

1. Example

Project: BSA_Browser
Source File: BSABrowser.cs
View license
private void btnExtractAll_Click(object sender, EventArgs e)
        {
            if (tvFolders.SelectedNode == null)
                return;

            if (_openFolderDialog.ShowDialog(this) == DialogResult.OK)
            {
                this.ExtractFiles(_openFolderDialog.Folder,
                    false,
                    true,
                    this.SelectedArchiveNode.Archive.Files.ToArray());
            }
        }

2. Example

Project: BSA_Browser
Source File: BSABrowser.cs
View license
private void btnExtractAllFolders_Click(object sender, EventArgs e)
        {
            if (tvFolders.SelectedNode == null)
                return;

            if (_openFolderDialog.ShowDialog(this) == DialogResult.OK)
            {
                this.ExtractFiles(_openFolderDialog.Folder,
                    true,
                    true,
                    this.SelectedArchiveNode.Archive.Files.ToArray());
            }
        }

3. Example

Project: BSA_Browser
Source File: BSABrowser.cs
View license
private void extractMenuItem_Click(object sender, EventArgs e)
        {
            if (lvFiles.SelectedIndices.Count == 0)
                return;

            if (_openFolderDialog.ShowDialog(this) == DialogResult.OK)
            {
                var files = new List<ArchiveEntry>();

                foreach (int index in lvFiles.SelectedIndices)
                    files.Add(_files[index]);

                this.ExtractFiles(_openFolderDialog.Folder, false, true, files.ToArray());
            }
        }

4. Example

Project: BSA_Browser
Source File: BSABrowser.cs
View license
private void extractFoldersMenuItem_Click(object sender, EventArgs e)
        {
            if (lvFiles.SelectedIndices.Count == 0)
                return;

            if (_openFolderDialog.ShowDialog(this) == DialogResult.OK)
            {
                var files = new List<ArchiveEntry>();

                foreach (int index in lvFiles.SelectedIndices)
                    files.Add(_files[index]);

                this.ExtractFiles(_openFolderDialog.Folder, true, true, files.ToArray());
            }
        }

5. Example

Project: BSA_Browser
Source File: BSABrowser.cs
View license
private void quickExtractMenuItem_Click(object sender, EventArgs e)
        {
            var menuItem = sender as MenuItem;
            var path = menuItem.Tag as QuickExtractPath;

            if (!Directory.Exists(path.Path))
            {
                DialogResult result = MessageBox.Show(this,
                    string.Format("{0} path doesn't exists anymore. Do you want to create it?", path.Name),
                    "Quick Extract",
                    MessageBoxButtons.YesNo);

                if (result == DialogResult.No)
                    return;

                Directory.CreateDirectory(path.Path);
            }

            var files = new List<ArchiveEntry>();

            foreach (int index in lvFiles.SelectedIndices)
                files.Add(_files[index]);

            ExtractFiles(path.Path, path.UseFolderPath, true, files.ToArray());
        }