Esempio n. 1
0
        private void toolstrip_ExtractNew_Click(object sender, EventArgs e)
        {
            if (file2 == null || listview_Main.SelectedItems == null || listview_Main.SelectedItems.Count < 1)
            {
                return;
            }

            if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
            {
                foreach (ListViewItem item in listview_Main.SelectedItems)
                {
                    if (item.ImageKey != "removed")
                    {
                        file2.Extract(item.Text, folderBrowserDialog1.SelectedPath);
                    }
                }
            }
        }
Esempio n. 2
0
        private void listviewsearch_MenuExtract_Click(object sender, EventArgs e)
        {
            if (listview_Search.SelectedItems == null || listview_Search.SelectedItems.Count < 1)
            {
                return;
            }

            if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
            {
                ReadyProgressBar(listview_Search.SelectedItems.Count);

                foreach (ListViewItem listItem in listview_Search.SelectedItems)
                {
                    PackFile file = loadedFiles[listItem.SubItems[3].Text];
                    file.Extract(listItem.Text, folderBrowserDialog1.SelectedPath);
                    progressbar_Main.Value += 1;
                }
                ResetProgressBar();
            }
        }