private void injectRiskyToolStripMenuItem_Click(object sender, EventArgs e) { FATXFileEntry x = ((FATXFileEntry)listView1.SelectedItems[0].Tag); string y = VariousFunctions.GetUserFileLocale("Open a file", VariousFunctions.GetFilter(x.Name), x.Name, true); if (y == null) { return; } advTree1.Enabled = listView1.Enabled = menuStrip1.Enabled = false; x.Inject(y); advTree1.Enabled = listView1.Enabled = menuStrip1.Enabled = true; }
private void replaceToolStripMenuItem_Click(object sender, EventArgs e) { FATXFileEntry x = ((FATXFileEntry)listView1.SelectedItems[0].Tag); string filter = VariousFunctions.GetFilter(x.Name); if (filter != "") { filter += "|All|*.*"; } string y = VariousFunctions.GetUserFileLocale("Open a file", filter, x.Name, true); if (y == null) { return; } advTree1.Enabled = listView1.Enabled = menuStrip1.Enabled = false; x.Replace(y); advTree1.Enabled = listView1.Enabled = menuStrip1.Enabled = true; }
private void extractToolStripMenuItem1_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count == 1) { FATXFileEntry x = ((FATXFileEntry)listView1.SelectedItems[0].Tag); string y = VariousFunctions.GetUserFileLocale("Save to where?", VariousFunctions.GetFilter(x.Name), x.Name, false); if (y == null) { return; } advTree1.Enabled = listView1.Enabled = menuStrip1.Enabled = false; x.Extract(y); } else { string y = VariousFunctions.GetUserFolderLocale("Save to where?"); if (y == null) { return; } advTree1.Enabled = listView1.Enabled = menuStrip1.Enabled = false; foreach (ListViewItem z in listView1.SelectedItems) { FATXFileEntry x = ((FATXFileEntry)z.Tag); x.Extract(y + "/" + x.Name); } } advTree1.Enabled = listView1.Enabled = menuStrip1.Enabled = true; }