/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void deleteEntryToolStripMenuItem_Click(object sender, EventArgs e) { int lRowIndex = -1; String lRequestedHost = String.Empty; String lRequestedURL = String.Empty; try { lRowIndex = DGV_Inject.SelectedRows[0].Index; lRequestedHost = DGV_Inject.Rows[lRowIndex].Cells["RequestedHost"].Value.ToString(); lRequestedURL = DGV_Inject.Rows[lRowIndex].Cells["RequestedURL"].Value.ToString(); cTask.removeItemFromList(lRequestedHost, lRequestedURL); } catch (Exception lEx) { PluginParameters.HostApplication.LogMessage(String.Format("{0}: {1}", Config.PluginName, lEx.Message)); return; } }