zs
2024-11-21 aee9f67e702f6467aa1948777251fa1bf85353ec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
namespace DataCapture_MA
{
    partial class CaptrueForm
    {
        /// <summary>
        /// 必需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;
 
        /// <summary>
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        #region Windows 窗体设计器生成的代码
 
        /// <summary>
        /// 设计器支持所需的方法 - 不要修改
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CaptrueForm));
            this.lbl_ip = new System.Windows.Forms.Label();
            this.lbl_port = new System.Windows.Forms.Label();
            this.local_port = new System.Windows.Forms.TextBox();
            this.start_connect = new System.Windows.Forms.Button();
            this.colse_connect = new System.Windows.Forms.Button();
            this.to_ip = new System.Windows.Forms.Label();
            this.to_port = new System.Windows.Forms.Label();
            this.to_ipTxt = new System.Windows.Forms.TextBox();
            this.to_portTxt = new System.Windows.Forms.TextBox();
            this.r_showBox = new System.Windows.Forms.RichTextBox();
            this.sendbtn = new System.Windows.Forms.Button();
            this.clearBtn = new System.Windows.Forms.Button();
            this.richSendTxt = new System.Windows.Forms.RichTextBox();
            this.ipSelect = new System.Windows.Forms.ComboBox();
            this.SuspendLayout();
            // 
            // lbl_ip
            // 
            this.lbl_ip.AutoSize = true;
            this.lbl_ip.Location = new System.Drawing.Point(80, 53);
            this.lbl_ip.Name = "lbl_ip";
            this.lbl_ip.Size = new System.Drawing.Size(53, 15);
            this.lbl_ip.TabIndex = 0;
            this.lbl_ip.Text = "本机IP";
            // 
            // lbl_port
            // 
            this.lbl_port.AutoSize = true;
            this.lbl_port.Location = new System.Drawing.Point(354, 53);
            this.lbl_port.Name = "lbl_port";
            this.lbl_port.Size = new System.Drawing.Size(67, 15);
            this.lbl_port.TabIndex = 1;
            this.lbl_port.Text = "本机端口";
            // 
            // local_port
            // 
            this.local_port.Location = new System.Drawing.Point(357, 71);
            this.local_port.Name = "local_port";
            this.local_port.Size = new System.Drawing.Size(180, 25);
            this.local_port.TabIndex = 3;
            this.local_port.Text = "8888";
            // 
            // start_connect
            // 
            this.start_connect.BackColor = System.Drawing.Color.Green;
            this.start_connect.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.start_connect.Location = new System.Drawing.Point(593, 53);
            this.start_connect.Name = "start_connect";
            this.start_connect.Size = new System.Drawing.Size(124, 114);
            this.start_connect.TabIndex = 4;
            this.start_connect.Text = "启动";
            this.start_connect.UseVisualStyleBackColor = false;
            this.start_connect.Click += new System.EventHandler(this.start_connect_Click);
            // 
            // colse_connect
            // 
            this.colse_connect.Enabled = false;
            this.colse_connect.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.colse_connect.Location = new System.Drawing.Point(773, 53);
            this.colse_connect.Name = "colse_connect";
            this.colse_connect.Size = new System.Drawing.Size(117, 114);
            this.colse_connect.TabIndex = 5;
            this.colse_connect.Text = "停止";
            this.colse_connect.UseVisualStyleBackColor = true;
            this.colse_connect.Click += new System.EventHandler(this.colse_connect_Click);
            // 
            // to_ip
            // 
            this.to_ip.AutoSize = true;
            this.to_ip.Location = new System.Drawing.Point(83, 121);
            this.to_ip.Name = "to_ip";
            this.to_ip.Size = new System.Drawing.Size(53, 15);
            this.to_ip.TabIndex = 6;
            this.to_ip.Text = "目标IP";
            // 
            // to_port
            // 
            this.to_port.AutoSize = true;
            this.to_port.Location = new System.Drawing.Point(354, 121);
            this.to_port.Name = "to_port";
            this.to_port.Size = new System.Drawing.Size(67, 15);
            this.to_port.TabIndex = 7;
            this.to_port.Text = "目标端口";
            // 
            // to_ipTxt
            // 
            this.to_ipTxt.Location = new System.Drawing.Point(83, 149);
            this.to_ipTxt.Name = "to_ipTxt";
            this.to_ipTxt.Size = new System.Drawing.Size(210, 25);
            this.to_ipTxt.TabIndex = 8;
            this.to_ipTxt.Text = "192.168.0.102";
            // 
            // to_portTxt
            // 
            this.to_portTxt.Location = new System.Drawing.Point(357, 149);
            this.to_portTxt.Name = "to_portTxt";
            this.to_portTxt.Size = new System.Drawing.Size(180, 25);
            this.to_portTxt.TabIndex = 9;
            this.to_portTxt.Text = "6666";
            // 
            // r_showBox
            // 
            this.r_showBox.Location = new System.Drawing.Point(52, 289);
            this.r_showBox.Name = "r_showBox";
            this.r_showBox.Size = new System.Drawing.Size(856, 466);
            this.r_showBox.TabIndex = 10;
            this.r_showBox.Text = "";
            // 
            // sendbtn
            // 
            this.sendbtn.Location = new System.Drawing.Point(593, 213);
            this.sendbtn.Name = "sendbtn";
            this.sendbtn.Size = new System.Drawing.Size(124, 39);
            this.sendbtn.TabIndex = 12;
            this.sendbtn.Text = "发送";
            this.sendbtn.UseVisualStyleBackColor = true;
            this.sendbtn.Click += new System.EventHandler(this.sendbtn_Click);
            // 
            // clearBtn
            // 
            this.clearBtn.Location = new System.Drawing.Point(773, 211);
            this.clearBtn.Name = "clearBtn";
            this.clearBtn.Size = new System.Drawing.Size(117, 39);
            this.clearBtn.TabIndex = 13;
            this.clearBtn.Text = "清除";
            this.clearBtn.UseVisualStyleBackColor = true;
            this.clearBtn.Click += new System.EventHandler(this.clearBtn_Click);
            // 
            // richSendTxt
            // 
            this.richSendTxt.Location = new System.Drawing.Point(83, 211);
            this.richSendTxt.Name = "richSendTxt";
            this.richSendTxt.Size = new System.Drawing.Size(451, 41);
            this.richSendTxt.TabIndex = 14;
            this.richSendTxt.Text = "";
            // 
            // ipSelect
            // 
            this.ipSelect.FormattingEnabled = true;
            this.ipSelect.Location = new System.Drawing.Point(83, 73);
            this.ipSelect.Name = "ipSelect";
            this.ipSelect.Size = new System.Drawing.Size(210, 23);
            this.ipSelect.TabIndex = 15;
            this.ipSelect.SelectedIndexChanged += new System.EventHandler(this.ipSelect_SelectedIndexChanged);
            // 
            // CaptrueForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(965, 784);
            this.Controls.Add(this.ipSelect);
            this.Controls.Add(this.richSendTxt);
            this.Controls.Add(this.clearBtn);
            this.Controls.Add(this.sendbtn);
            this.Controls.Add(this.r_showBox);
            this.Controls.Add(this.to_portTxt);
            this.Controls.Add(this.to_ipTxt);
            this.Controls.Add(this.to_port);
            this.Controls.Add(this.to_ip);
            this.Controls.Add(this.colse_connect);
            this.Controls.Add(this.start_connect);
            this.Controls.Add(this.local_port);
            this.Controls.Add(this.lbl_port);
            this.Controls.Add(this.lbl_ip);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "CaptrueForm";
            this.Text = "UDP数据采集";
            this.ResumeLayout(false);
            this.PerformLayout();
 
        }
 
        #endregion
 
        private System.Windows.Forms.Label lbl_ip;
        private System.Windows.Forms.Label lbl_port;
        private System.Windows.Forms.TextBox local_port;
        private System.Windows.Forms.Button start_connect;
        private System.Windows.Forms.Button colse_connect;
        private System.Windows.Forms.Label to_ip;
        private System.Windows.Forms.Label to_port;
        private System.Windows.Forms.TextBox to_ipTxt;
        private System.Windows.Forms.TextBox to_portTxt;
        private System.Windows.Forms.RichTextBox r_showBox;
        private System.Windows.Forms.Button sendbtn;
        private System.Windows.Forms.Button clearBtn;
        private System.Windows.Forms.RichTextBox richSendTxt;
        private System.Windows.Forms.ComboBox ipSelect;
    }
}