/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DGV_Targets_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { DataGridViewRow lCurrentRow = DGV_Targets.SelectedRows[0]; String lIP = lCurrentRow.Cells["IP"].Value.ToString(); String lMAC = lCurrentRow.Cells["MAC"].Value.ToString(); String lVendor = lCurrentRow.Cells["vendor"].Value.ToString(); SystemFingerprint.SystemFingerprint lFingerprint = new SystemFingerprint.SystemFingerprint(lMAC, lIP, lVendor); lFingerprint.ShowDialog(); reloadDGVValues(); } catch (Exception lEx) { LogConsole.Main.LogConsole.pushMsg(String.Format("ARPScan: {1}", lEx.Message)); DGV_Targets.ClearSelection(); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void DGV_CellClick(object sender, DataGridViewCellEventArgs e) { // Ignore clicks that are not on button cells. if (e.RowIndex >= 0) { String lIP = DGV_Targets.Rows[e.RowIndex].Cells[0].Value.ToString(); String lMAC = DGV_Targets.Rows[e.RowIndex].Cells[1].Value.ToString(); String lVendor = DGV_Targets.Rows[e.RowIndex].Cells[2].Value.ToString(); /* * (De)Activate target system */ if (e.ColumnIndex == 3) { for (int i = 0; i < mTargetRecord.Count; i++) { if (mTargetRecord[i].MAC == lMAC && mTargetRecord[i].IP == lIP) { mTargetRecord[i].Status = mTargetRecord[i].Status ? false : true; break; } } // for (in... /* * Fingerprint target system */ } else if (e.ColumnIndex == 4) { SystemFingerprint.SystemFingerprint lFingerprint = new SystemFingerprint.SystemFingerprint(lMAC, lIP, lVendor); lFingerprint.ShowDialog(); reloadDGVValues(); } } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DGV_Targets_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { DataGridViewRow lCurrentRow = DGV_Targets.SelectedRows[0]; String lIP = lCurrentRow.Cells["IP"].Value.ToString(); String lMAC = lCurrentRow.Cells["MAC"].Value.ToString(); String lVendor = lCurrentRow.Cells["vendor"].Value.ToString(); SystemFingerprint.SystemFingerprint lFingerprint = new SystemFingerprint.SystemFingerprint(lMAC, lIP, lVendor); lFingerprint.ShowDialog(); reloadDGVValues(); } catch (Exception lEx) { LogConsole.Main.LogConsole.LogInstance.LogMessage(String.Format("ARPScan: {0}", lEx.Message)); DGV_Targets.ClearSelection(); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void DGV_CellClick(object sender, DataGridViewCellEventArgs e) { // Ignore clicks that are not on button cells. if (e.RowIndex >= 0) { String lIP = DGV_Targets.Rows[e.RowIndex].Cells[0].Value.ToString(); String lMAC = DGV_Targets.Rows[e.RowIndex].Cells[1].Value.ToString(); String lVendor = DGV_Targets.Rows[e.RowIndex].Cells[2].Value.ToString(); /* * (De)Activate target system */ if (e.ColumnIndex == 3) { for (int i = 0; i < mTargetRecord.Count; i++) { if (mTargetRecord[i].MAC == lMAC && mTargetRecord[i].IP == lIP) { mTargetRecord[i].Status = mTargetRecord[i].Status ? false : true; break; } } // for (in... /* * Fingerprint target system */ } else if (e.ColumnIndex == 4) { SystemFingerprint.SystemFingerprint lFingerprint = new SystemFingerprint.SystemFingerprint(lMAC, lIP, lVendor); lFingerprint.ShowDialog(); reloadDGVValues(); } } }