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 injectToolStripMenuItem_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count != 1) { return; } FATXFileEntry x = ((FATXFileEntry)listView1.SelectedItems[0].Tag); string locale = VariousFunctions.GetUserFileLocale("Open File", "", true); if (locale == null) { return; } listView1.Enabled = false; status = "Injecting File"; if (x.Inject(locale)) { refresh(); } status = "Idle"; listView1.Enabled = true; }