private void darkButton4_Click(object sender, EventArgs e) { foreach (DarkListItem itm in darkListView1.Items) { PandaProtection pandaProtection = pandaModuleManager.pandaProtections().Single(t => t.Id == itm.Tag && t.Name == itm.Text); pandaContext.addIGModule(pandaProtection); } if (basic.Checked) { pandaEngine.runModules(PandaState.Basic, pandaContext); } else { pandaEngine.runModules(PandaState.Normal, pandaContext); } if (pandaContext.Write()) { MessageBox.Show("File Obfuscated!"); } else { MessageBox.Show("Cannot Obfuscate the file for some reasons!"); } reNew(); }
private void darkButton3_Click(object sender, EventArgs e) { DarkListItem darkListItem = darkListView1.Items[darkListView1.SelectedIndices[0]]; PandaProtection pandaProtection = pandaModuleManager.pandaProtections().Single(t => t.Id == darkListItem.Tag && t.Name == darkListItem.Text); darkListView1.Items.RemoveAt(darkListView1.SelectedIndices[0]); pandaContext.removeIGModule(pandaProtection); }
private void darkListView1_Click(object sender, EventArgs e) { try { DarkListItem darkListItem = darkListView1.Items[darkListView1.SelectedIndices[0]]; PandaProtection pandaProtection = pandaModuleManager.pandaProtections().Single(t => t.Id == darkListItem.Tag && t.Name == darkListItem.Text); nameLbl.Text = "Name: " + (pandaProtection.Name); idLbl.Text = "Id: " + pandaProtection.Id; DescLbl.Text = "Description: " + pandaProtection.Description; authorLbl.Text = "Author: " + pandaProtection.Author; } catch {} }