private void mnuItem_StartCapture_Click(object sender, EventArgs e) { CaptureStatistic.Reset(); CaptureStatistic.StartOfCapture = DateTime.Now; try { NetMonitor.StartCapture(); } catch { return; } // Change some elements properties dgvPackets.Rows.Clear(); trePacket.Nodes.Clear(); pnlTip.Visible = false; lblElapsedTime.Visible = true; lblElpsTime.Visible = true; mnuItem_Options.Enabled = false; mnuItem_StartCapture.Enabled = false; mnuItem_StopCapture.Enabled = true; lblProgramStatus.Text = "Capturing..."; lblProgramStatus.ForeColor = Color.Red; timStatistics.Enabled = true; }
private void mnuItem_ClearDataGridView_Click(object sender, EventArgs e) { CaptureStatistic.Reset(); dgvPackets.Rows.Clear(); }