Exemplo n.º 1
0
 /// <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));
     }
 }
Exemplo n.º 2
0
        /// <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));
            }
        }
Exemplo n.º 3
0
        /// <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);
        }