public static IDeobfPlugin GetSelectedPluginFromGrid(DataGridViewRow dgvr) { string title = dgvr.Cells["dgcTitle"].Value as string; IDeobfPlugin dp = PluginUtils.Plugins[title].PluginBase as IDeobfPlugin; return(dp); }
private void dgvPlugin_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (dgvPlugin.SelectedRows.Count < 1) { return; } IDeobfPlugin dp = PluginUtils.GetSelectedPluginFromGrid(dgvPlugin.SelectedRows[0]); if (dp == null) { return; } dp.Configure(); }