/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void deleteEntryToolStripMenuItem_Click(object sender, EventArgs e) { try { int lCurIndex = DGV_DNSRequests.CurrentCell.RowIndex; cTask.removeRecordAt(lCurIndex); } catch (Exception lEx) { PluginParameters.HostApplication.LogMessage(String.Format("{0}: {1}", Config.PluginName, lEx.Message)); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void TSMI_Delete_Click(object sender, EventArgs e) { try { BindingList <DNSPoisonRecord> lTmpHosts = new BindingList <DNSPoisonRecord>(); int lCurIndex = DGV_Spoofing.CurrentCell.RowIndex; String lHostName = DGV_Spoofing.Rows[lCurIndex].Cells["HostName"].Value.ToString(); cTask.removeRecordAt(lHostName); } catch (Exception lEx) { cPluginParams.HostApplication.LogMessage(String.Format("{0}: {1}", Config.PluginName, lEx.Message)); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void deleteEntryToolStripMenuItem_Click(object sender, EventArgs e) { int lCurIndex = DGV_Systems.CurrentCell.RowIndex; cTask.removeRecordAt(lCurIndex); }