⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 capturedisplay.cs

📁 一个抓包工具
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace MyClasses
{

	public class CaptureDisplay : System.Windows.Forms.Form
	{
		private System.Windows.Forms.GroupBox GrpBoxCapture;
		private System.Windows.Forms.Label LblTotal;
		private System.Windows.Forms.Label LblTotalCount;
		private System.Windows.Forms.Label LblTotalPct;
		private System.Windows.Forms.Label LblSCPT;
		private System.Windows.Forms.Label LblSCPTCount;
		private System.Windows.Forms.Label LblTCP;
		private System.Windows.Forms.Label LblSCPTPct;
		private System.Windows.Forms.Label LblTCPCount;
		private System.Windows.Forms.Label LblTCPPct;
		private System.Windows.Forms.Label LblUDP;
		private System.Windows.Forms.Label LblUDPPct;
		private System.Windows.Forms.Label LblICMP;
		private System.Windows.Forms.Label LblUDPCount;
		private System.Windows.Forms.Label LblICMPPct;
		private System.Windows.Forms.Label LblICMPCount;
		private System.Windows.Forms.Label LblOSPF;
		private System.Windows.Forms.Label LblARP;
		private System.Windows.Forms.Label LblOSPFCount;
		private System.Windows.Forms.Label LblARPCount;
		private System.Windows.Forms.Label LblOSPFPct;
		private System.Windows.Forms.Label LblARPPct;
		private System.Windows.Forms.Label LblGRE;
		private System.Windows.Forms.Label LblGRECount;
		private System.Windows.Forms.Label LblNetBIOS;
		private System.Windows.Forms.Label LblGREPct;
		private System.Windows.Forms.Label LblNetBIOSCount;
		private System.Windows.Forms.Label LblNetBIOSPct;
		private System.Windows.Forms.Label LblIPX;
		private System.Windows.Forms.Label LblIPXPct;
		private System.Windows.Forms.Label LblIPXCount;
		private System.Windows.Forms.Label LblVINESCount;
		private System.Windows.Forms.Label LblVINES;
		private System.Windows.Forms.Label LblVINESPct;
		private System.Windows.Forms.Label LblOther;
		private System.Windows.Forms.Label LblOtherPct;
		private System.Windows.Forms.Label LblOtherCount;
		private System.Windows.Forms.GroupBox GrpBoxRunningTime;
		private System.Windows.Forms.Label LblRunningTime;
		private System.Windows.Forms.Button BtnStop;

		private System.ComponentModel.Container components = null;

		public CaptureDisplay()
		{

			InitializeComponent();


		}


		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private  void InitializeComponent()
		{
			this.GrpBoxCapture = new System.Windows.Forms.GroupBox();
			this.LblTotal = new System.Windows.Forms.Label();
			this.LblTotalCount = new System.Windows.Forms.Label();
			this.LblTotalPct = new System.Windows.Forms.Label();
			this.LblSCPT = new System.Windows.Forms.Label();
			this.LblSCPTCount = new System.Windows.Forms.Label();
			this.LblTCP = new System.Windows.Forms.Label();
			this.LblSCPTPct = new System.Windows.Forms.Label();
			this.LblTCPCount = new System.Windows.Forms.Label();
			this.LblTCPPct = new System.Windows.Forms.Label();
			this.LblUDP = new System.Windows.Forms.Label();
			this.LblUDPPct = new System.Windows.Forms.Label();
			this.LblICMP = new System.Windows.Forms.Label();
			this.LblUDPCount = new System.Windows.Forms.Label();
			this.LblICMPPct = new System.Windows.Forms.Label();
			this.LblICMPCount = new System.Windows.Forms.Label();
			this.LblOSPF = new System.Windows.Forms.Label();
			this.LblARP = new System.Windows.Forms.Label();
			this.LblOSPFCount = new System.Windows.Forms.Label();
			this.LblARPCount = new System.Windows.Forms.Label();
			this.LblOSPFPct = new System.Windows.Forms.Label();
			this.LblARPPct = new System.Windows.Forms.Label();
			this.LblGRE = new System.Windows.Forms.Label();
			this.LblGRECount = new System.Windows.Forms.Label();
			this.LblNetBIOS = new System.Windows.Forms.Label();
			this.LblGREPct = new System.Windows.Forms.Label();
			this.LblNetBIOSCount = new System.Windows.Forms.Label();
			this.LblNetBIOSPct = new System.Windows.Forms.Label();
			this.LblIPX = new System.Windows.Forms.Label();
			this.LblIPXPct = new System.Windows.Forms.Label();
			this.LblIPXCount = new System.Windows.Forms.Label();
			this.LblVINESCount = new System.Windows.Forms.Label();
			this.LblVINES = new System.Windows.Forms.Label();
			this.LblVINESPct = new System.Windows.Forms.Label();
			this.LblOther = new System.Windows.Forms.Label();
			this.LblOtherPct = new System.Windows.Forms.Label();
			this.LblOtherCount = new System.Windows.Forms.Label();
			this.GrpBoxRunningTime = new System.Windows.Forms.GroupBox();
			this.LblRunningTime = new System.Windows.Forms.Label();
			this.BtnStop = new System.Windows.Forms.Button();
			this.GrpBoxCapture.SuspendLayout();
			this.GrpBoxRunningTime.SuspendLayout();
			this.SuspendLayout();
			// 
			// GrpBoxCapture
			// 
			this.GrpBoxCapture.Controls.AddRange(new System.Windows.Forms.Control[] {
																						this.LblOtherCount,
																						this.LblOtherPct,
																						this.LblOther,
																						this.LblVINESPct,
																						this.LblVINES,
																						this.LblVINESCount,
																						this.LblIPXCount,
																						this.LblIPXPct,
																						this.LblIPX,
																						this.LblNetBIOSPct,
																						this.LblNetBIOSCount,
																						this.LblGREPct,
																						this.LblNetBIOS,
																						this.LblGRECount,
																						this.LblGRE,
																						this.LblARPPct,
																						this.LblOSPFPct,
																						this.LblARPCount,
																						this.LblOSPFCount,
																						this.LblARP,
																						this.LblOSPF,
																						this.LblICMPCount,
																						this.LblICMPPct,
																						this.LblUDPCount,
																						this.LblICMP,
																						this.LblUDPPct,
																						this.LblUDP,
																						this.LblTCPPct,
																						this.LblTCPCount,
																						this.LblSCPTPct,
																						this.LblTCP,
																						this.LblSCPTCount,
																						this.LblSCPT,
																						this.LblTotalPct,
																						this.LblTotalCount,
																						this.LblTotal});
			this.GrpBoxCapture.Location = new System.Drawing.Point(8, 8);
			this.GrpBoxCapture.Name = "GrpBoxCapture";
			this.GrpBoxCapture.Size = new System.Drawing.Size(328, 312);
			this.GrpBoxCapture.TabIndex = 0;
			this.GrpBoxCapture.TabStop = false;
			this.GrpBoxCapture.Text = "   Captured Frames   ";
			// 
			// LblTotal
			// 
			this.LblTotal.AutoSize = true;
			this.LblTotal.Location = new System.Drawing.Point(16, 24);
			this.LblTotal.Name = "LblTotal";
			this.LblTotal.Size = new System.Drawing.Size(29, 13);
			this.LblTotal.TabIndex = 0;
			this.LblTotal.Text = "Total";
			// 
			// LblTotalCount
			// 
			this.LblTotalCount.AutoSize = true;
			this.LblTotalCount.Location = new System.Drawing.Point(120, 24);
			this.LblTotalCount.Name = "LblTotalCount";
			this.LblTotalCount.Size = new System.Drawing.Size(10, 13);
			this.LblTotalCount.TabIndex = 1;
			this.LblTotalCount.Text = "0";
			// 
			// LblTotalPct
			// 
			this.LblTotalPct.AutoSize = true;
			this.LblTotalPct.Location = new System.Drawing.Point(232, 24);
			this.LblTotalPct.Name = "LblTotalPct";
			this.LblTotalPct.Size = new System.Drawing.Size(53, 13);
			this.LblTotalPct.TabIndex = 2;
			this.LblTotalPct.Text = "( 0.00 % )";
			// 
			// LblSCPT
			// 
			this.LblSCPT.AutoSize = true;
			this.LblSCPT.Location = new System.Drawing.Point(16, 48);
			this.LblSCPT.Name = "LblSCPT";
			this.LblSCPT.Size = new System.Drawing.Size(34, 13);
			this.LblSCPT.TabIndex = 3;
			this.LblSCPT.Text = "SCTP";
			// 
			// LblSCPTCount
			// 
			this.LblSCPTCount.AutoSize = true;
			this.LblSCPTCount.Location = new System.Drawing.Point(120, 48);
			this.LblSCPTCount.Name = "LblSCPTCount";
			this.LblSCPTCount.Size = new System.Drawing.Size(10, 13);
			this.LblSCPTCount.TabIndex = 4;
			this.LblSCPTCount.Text = "0";
			// 
			// LblTCP
			// 
			this.LblTCP.AutoSize = true;
			this.LblTCP.Location = new System.Drawing.Point(16, 72);
			this.LblTCP.Name = "LblTCP";
			this.LblTCP.Size = new System.Drawing.Size(27, 13);
			this.LblTCP.TabIndex = 5;
			this.LblTCP.Text = "TCP";
			// 
			// LblSCPTPct
			// 
			this.LblSCPTPct.AutoSize = true;
			this.LblSCPTPct.Location = new System.Drawing.Point(232, 48);
			this.LblSCPTPct.Name = "LblSCPTPct";
			this.LblSCPTPct.Size = new System.Drawing.Size(53, 13);
			this.LblSCPTPct.TabIndex = 6;
			this.LblSCPTPct.Text = "( 0.00 % )";
			// 
			// LblTCPCount
			// 
			this.LblTCPCount.AutoSize = true;
			this.LblTCPCount.Location = new System.Drawing.Point(120, 72);
			this.LblTCPCount.Name = "LblTCPCount";
			this.LblTCPCount.Size = new System.Drawing.Size(10, 13);
			this.LblTCPCount.TabIndex = 7;
			this.LblTCPCount.Text = "0";
			// 
			// LblTCPPct
			// 
			this.LblTCPPct.AutoSize = true;
			this.LblTCPPct.Location = new System.Drawing.Point(232, 72);
			this.LblTCPPct.Name = "LblTCPPct";
			this.LblTCPPct.Size = new System.Drawing.Size(53, 13);
			this.LblTCPPct.TabIndex = 8;
			this.LblTCPPct.Text = "( 0.00 % )";
			// 
			// LblUDP
			// 
			this.LblUDP.AutoSize = true;
			this.LblUDP.Location = new System.Drawing.Point(16, 96);
			this.LblUDP.Name = "LblUDP";
			this.LblUDP.Size = new System.Drawing.Size(28, 13);
			this.LblUDP.TabIndex = 9;
			this.LblUDP.Text = "UDP";
			// 
			// LblUDPPct
			// 
			this.LblUDPPct.AutoSize = true;
			this.LblUDPPct.Location = new System.Drawing.Point(232, 96);
			this.LblUDPPct.Name = "LblUDPPct";
			this.LblUDPPct.Size = new System.Drawing.Size(53, 13);
			this.LblUDPPct.TabIndex = 10;
			this.LblUDPPct.Text = "( 0.00 % )";
			this.LblUDPPct.Click += new System.EventHandler(this.LblUDPPct_Click);
			// 
			// LblICMP
			// 
			this.LblICMP.AutoSize = true;
			this.LblICMP.Location = new System.Drawing.Point(16, 120);
			this.LblICMP.Name = "LblICMP";
			this.LblICMP.Size = new System.Drawing.Size(32, 13);
			this.LblICMP.TabIndex = 11;
			this.LblICMP.Text = "ICMP";
			// 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -