|
@@ -0,0 +1,179 @@
|
|
|
+namespace UdPunching.ExampleW
|
|
|
+{
|
|
|
+ partial class ExampleForm
|
|
|
+ {
|
|
|
+ /// <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()
|
|
|
+ {
|
|
|
+ this.components = new System.ComponentModel.Container();
|
|
|
+ this.StartButton = new System.Windows.Forms.Button();
|
|
|
+ this.ServerIEndPointTextBox = new System.Windows.Forms.TextBox();
|
|
|
+ this.StopButton = new System.Windows.Forms.Button();
|
|
|
+ this.PublicEndPointTextBox = new System.Windows.Forms.TextBox();
|
|
|
+ this.KeepAliveTimer = new System.Windows.Forms.Timer(this.components);
|
|
|
+ this.SendButton = new System.Windows.Forms.Button();
|
|
|
+ this.SendToEndPointTextBox = new System.Windows.Forms.TextBox();
|
|
|
+ this.SendContentTextBox = new System.Windows.Forms.TextBox();
|
|
|
+ this.RecvTextBox = new System.Windows.Forms.TextBox();
|
|
|
+ this.PeerKetyDropDown = new System.Windows.Forms.ComboBox();
|
|
|
+ this.StatusLabel = new System.Windows.Forms.Label();
|
|
|
+ this.SuspendLayout();
|
|
|
+ //
|
|
|
+ // StartButton
|
|
|
+ //
|
|
|
+ this.StartButton.Location = new System.Drawing.Point(155, 44);
|
|
|
+ this.StartButton.Name = "StartButton";
|
|
|
+ this.StartButton.Size = new System.Drawing.Size(75, 23);
|
|
|
+ this.StartButton.TabIndex = 0;
|
|
|
+ this.StartButton.Text = "Start";
|
|
|
+ this.StartButton.UseVisualStyleBackColor = true;
|
|
|
+ this.StartButton.Click += new System.EventHandler(this.StartButton_Click);
|
|
|
+ //
|
|
|
+ // ServerIEndPointTextBox
|
|
|
+ //
|
|
|
+ this.ServerIEndPointTextBox.Location = new System.Drawing.Point(12, 44);
|
|
|
+ this.ServerIEndPointTextBox.Name = "ServerIEndPointTextBox";
|
|
|
+ this.ServerIEndPointTextBox.Size = new System.Drawing.Size(137, 21);
|
|
|
+ this.ServerIEndPointTextBox.TabIndex = 1;
|
|
|
+ this.ServerIEndPointTextBox.Text = "127.111.111.111:23330";
|
|
|
+ //
|
|
|
+ // StopButton
|
|
|
+ //
|
|
|
+ this.StopButton.Enabled = false;
|
|
|
+ this.StopButton.Location = new System.Drawing.Point(236, 44);
|
|
|
+ this.StopButton.Name = "StopButton";
|
|
|
+ this.StopButton.Size = new System.Drawing.Size(75, 23);
|
|
|
+ this.StopButton.TabIndex = 0;
|
|
|
+ this.StopButton.Text = "Stop";
|
|
|
+ this.StopButton.UseVisualStyleBackColor = true;
|
|
|
+ this.StopButton.Click += new System.EventHandler(this.StopButton_Click);
|
|
|
+ //
|
|
|
+ // PublicEndPointTextBox
|
|
|
+ //
|
|
|
+ this.PublicEndPointTextBox.Location = new System.Drawing.Point(317, 46);
|
|
|
+ this.PublicEndPointTextBox.Name = "PublicEndPointTextBox";
|
|
|
+ this.PublicEndPointTextBox.ReadOnly = true;
|
|
|
+ this.PublicEndPointTextBox.Size = new System.Drawing.Size(183, 21);
|
|
|
+ this.PublicEndPointTextBox.TabIndex = 3;
|
|
|
+ this.PublicEndPointTextBox.Text = "???.???.???.???:?????";
|
|
|
+ //
|
|
|
+ // KeepAliveTimer
|
|
|
+ //
|
|
|
+ this.KeepAliveTimer.Interval = 1000;
|
|
|
+ this.KeepAliveTimer.Tick += new System.EventHandler(this.KeepAliveTimer_Tick);
|
|
|
+ //
|
|
|
+ // SendButton
|
|
|
+ //
|
|
|
+ this.SendButton.Enabled = false;
|
|
|
+ this.SendButton.Location = new System.Drawing.Point(155, 71);
|
|
|
+ this.SendButton.Name = "SendButton";
|
|
|
+ this.SendButton.Size = new System.Drawing.Size(75, 23);
|
|
|
+ this.SendButton.TabIndex = 0;
|
|
|
+ this.SendButton.Text = "Send";
|
|
|
+ this.SendButton.UseVisualStyleBackColor = true;
|
|
|
+ this.SendButton.Click += new System.EventHandler(this.SendButton_Click);
|
|
|
+ //
|
|
|
+ // SendToEndPointTextBox
|
|
|
+ //
|
|
|
+ this.SendToEndPointTextBox.Location = new System.Drawing.Point(12, 71);
|
|
|
+ this.SendToEndPointTextBox.Name = "SendToEndPointTextBox";
|
|
|
+ this.SendToEndPointTextBox.Size = new System.Drawing.Size(137, 21);
|
|
|
+ this.SendToEndPointTextBox.TabIndex = 1;
|
|
|
+ this.SendToEndPointTextBox.Text = "???.???.???.???:00000";
|
|
|
+ //
|
|
|
+ // SendContentTextBox
|
|
|
+ //
|
|
|
+ this.SendContentTextBox.Location = new System.Drawing.Point(12, 100);
|
|
|
+ this.SendContentTextBox.Multiline = true;
|
|
|
+ this.SendContentTextBox.Name = "SendContentTextBox";
|
|
|
+ this.SendContentTextBox.Size = new System.Drawing.Size(241, 130);
|
|
|
+ this.SendContentTextBox.TabIndex = 4;
|
|
|
+ //
|
|
|
+ // RecvTextBox
|
|
|
+ //
|
|
|
+ this.RecvTextBox.Location = new System.Drawing.Point(259, 100);
|
|
|
+ this.RecvTextBox.Multiline = true;
|
|
|
+ this.RecvTextBox.Name = "RecvTextBox";
|
|
|
+ this.RecvTextBox.Size = new System.Drawing.Size(241, 130);
|
|
|
+ this.RecvTextBox.TabIndex = 4;
|
|
|
+ //
|
|
|
+ // PeerKetyDropDown
|
|
|
+ //
|
|
|
+ this.PeerKetyDropDown.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.PeerKetyDropDown.FormattingEnabled = true;
|
|
|
+ this.PeerKetyDropDown.Location = new System.Drawing.Point(12, 12);
|
|
|
+ this.PeerKetyDropDown.Name = "PeerKetyDropDown";
|
|
|
+ this.PeerKetyDropDown.Size = new System.Drawing.Size(488, 20);
|
|
|
+ this.PeerKetyDropDown.TabIndex = 5;
|
|
|
+ //
|
|
|
+ // StatusLabel
|
|
|
+ //
|
|
|
+ this.StatusLabel.AutoSize = true;
|
|
|
+ this.StatusLabel.Location = new System.Drawing.Point(293, 76);
|
|
|
+ this.StatusLabel.Name = "StatusLabel";
|
|
|
+ this.StatusLabel.Size = new System.Drawing.Size(41, 12);
|
|
|
+ this.StatusLabel.TabIndex = 6;
|
|
|
+ this.StatusLabel.Text = "Ready.";
|
|
|
+ //
|
|
|
+ // ExampleForm
|
|
|
+ //
|
|
|
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
+ this.ClientSize = new System.Drawing.Size(520, 250);
|
|
|
+ this.Controls.Add(this.StatusLabel);
|
|
|
+ this.Controls.Add(this.PeerKetyDropDown);
|
|
|
+ this.Controls.Add(this.RecvTextBox);
|
|
|
+ this.Controls.Add(this.SendContentTextBox);
|
|
|
+ this.Controls.Add(this.PublicEndPointTextBox);
|
|
|
+ this.Controls.Add(this.SendToEndPointTextBox);
|
|
|
+ this.Controls.Add(this.ServerIEndPointTextBox);
|
|
|
+ this.Controls.Add(this.StopButton);
|
|
|
+ this.Controls.Add(this.SendButton);
|
|
|
+ this.Controls.Add(this.StartButton);
|
|
|
+ this.Name = "ExampleForm";
|
|
|
+ this.Text = "UdPoi Example";
|
|
|
+ this.Shown += new System.EventHandler(this.ExampleForm_Shown);
|
|
|
+ this.ResumeLayout(false);
|
|
|
+ this.PerformLayout();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ private System.Windows.Forms.Button StartButton;
|
|
|
+ private System.Windows.Forms.TextBox ServerIEndPointTextBox;
|
|
|
+ private System.Windows.Forms.Button StopButton;
|
|
|
+ private System.Windows.Forms.TextBox PublicEndPointTextBox;
|
|
|
+ private System.Windows.Forms.Timer KeepAliveTimer;
|
|
|
+ private System.Windows.Forms.Button SendButton;
|
|
|
+ private System.Windows.Forms.TextBox SendToEndPointTextBox;
|
|
|
+ private System.Windows.Forms.TextBox SendContentTextBox;
|
|
|
+ private System.Windows.Forms.TextBox RecvTextBox;
|
|
|
+ private System.Windows.Forms.ComboBox PeerKetyDropDown;
|
|
|
+ private System.Windows.Forms.Label StatusLabel;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|