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; }
private void extractToToolStripMenuItem_Click(object sender, EventArgs e) { string y = VariousFunctions.GetUserFolderLocale("Select a save location"); if (y == null) { return; } menuStrip1.Enabled = menuStrip2.Enabled = listView1.Enabled = false; ((FATXFolderEntry)listView1.SelectedItems[0].Tag).Extract(y, true); menuStrip1.Enabled = menuStrip2.Enabled = listView1.Enabled = true; }
private void extractToolStripMenuItem_Click(object sender, EventArgs e) { string y = VariousFunctions.GetUserFolderLocale("Extract to where?"); if (y == null) { return; } advTree1.Enabled = listView1.Enabled = menuStrip1.Enabled = false; FATXFolderEntry ent = (FATXFolderEntry)advTree1.Tag; ent.Extract(y + "/" + ent.Name, true); advTree1.Enabled = listView1.Enabled = menuStrip1.Enabled = true; }
private void button1_Click(object sender, EventArgs e) { RSAParams xParams; string xOut = null; if (xtype == PackType.STFS) { xOut = VariousFunctions.GetUserFileLocale("Save to where?", "", false); if (xOut == null) { return; } } else { if (ximg == null) { MessageBox.Show("Please select an image"); return; } string y = VariousFunctions.GetUserFolderLocale("Select a save location"); if (y == null) { return; } xOut = y; } if (radioButton1.Checked) { xParams = xparent.PublicKV; } else if (radioButton2.Checked) { xParams = new RSAParams(StrongSigned.LIVE); } else { xParams = new RSAParams(StrongSigned.PIRS); } if (xtype == PackType.STFS) { LogRecord rec = new LogRecord(); STFSPackage xy = new STFSPackage(xsession, xParams, xOut, rec); PackageExplorer z = new PackageExplorer(xparent); z.set(ref xy); z.listBox4.Items.AddRange(rec.Log); this.Close(); z.Show(); } else { CreateSVOD z = new CreateSVOD(ximg, xOut, xhead); if (z.Create(xParams, (PackageType)comboBoxEx2.SelectedItem)) { MessageBox.Show("Completed successfully"); } else { MessageBox.Show("Unsuccessful build"); } } this.Dispose(); }