您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

180 行
8.5 KiB

  1. namespace Test
  2. {
  3. partial class Form1
  4. {
  5. /// <summary>
  6. /// 必需的设计器变量。
  7. /// </summary>
  8. private System.ComponentModel.IContainer components = null;
  9. /// <summary>
  10. /// 清理所有正在使用的资源。
  11. /// </summary>
  12. /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
  13. protected override void Dispose(bool disposing)
  14. {
  15. if (disposing && (components != null))
  16. {
  17. components.Dispose();
  18. }
  19. base.Dispose(disposing);
  20. }
  21. #region Windows 窗体设计器生成的代码
  22. /// <summary>
  23. /// 设计器支持所需的方法 - 不要
  24. /// 使用代码编辑器修改此方法的内容。
  25. /// </summary>
  26. private void InitializeComponent()
  27. {
  28. this.components = new System.ComponentModel.Container();
  29. this.tlpAll = new System.Windows.Forms.TableLayoutPanel();
  30. this.rtxHistory = new System.Windows.Forms.RichTextBox();
  31. this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
  32. this.txtPort = new System.Windows.Forms.TextBox();
  33. this.lblSwiSta = new System.Windows.Forms.Label();
  34. this.btnSerSwitch = new System.Windows.Forms.Button();
  35. this.lblPort = new System.Windows.Forms.Label();
  36. this.menuStrip1 = new System.Windows.Forms.MenuStrip();
  37. this.tmr = new System.Windows.Forms.Timer(this.components);
  38. this.tlpAll.SuspendLayout();
  39. this.tableLayoutPanel1.SuspendLayout();
  40. this.SuspendLayout();
  41. //
  42. // tlpAll
  43. //
  44. this.tlpAll.ColumnCount = 2;
  45. this.tlpAll.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 27.25581F));
  46. this.tlpAll.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 72.74419F));
  47. this.tlpAll.Controls.Add(this.rtxHistory, 0, 0);
  48. this.tlpAll.Controls.Add(this.tableLayoutPanel1, 0, 0);
  49. this.tlpAll.Dock = System.Windows.Forms.DockStyle.Fill;
  50. this.tlpAll.Location = new System.Drawing.Point(0, 24);
  51. this.tlpAll.Name = "tlpAll";
  52. this.tlpAll.RowCount = 1;
  53. this.tlpAll.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
  54. this.tlpAll.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 425F));
  55. this.tlpAll.Size = new System.Drawing.Size(965, 425);
  56. this.tlpAll.TabIndex = 2;
  57. //
  58. // rtxHistory
  59. //
  60. this.rtxHistory.Dock = System.Windows.Forms.DockStyle.Fill;
  61. this.rtxHistory.Font = new System.Drawing.Font("Calibri", 10.8F);
  62. this.rtxHistory.Location = new System.Drawing.Point(266, 3);
  63. this.rtxHistory.Name = "rtxHistory";
  64. this.rtxHistory.Size = new System.Drawing.Size(696, 419);
  65. this.rtxHistory.TabIndex = 2;
  66. this.rtxHistory.Text = "";
  67. //
  68. // tableLayoutPanel1
  69. //
  70. this.tableLayoutPanel1.ColumnCount = 2;
  71. this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 45.8042F));
  72. this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 54.1958F));
  73. this.tableLayoutPanel1.Controls.Add(this.txtPort, 1, 0);
  74. this.tableLayoutPanel1.Controls.Add(this.lblSwiSta, 0, 1);
  75. this.tableLayoutPanel1.Controls.Add(this.btnSerSwitch, 1, 1);
  76. this.tableLayoutPanel1.Controls.Add(this.lblPort, 0, 0);
  77. this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
  78. this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 3);
  79. this.tableLayoutPanel1.Name = "tableLayoutPanel1";
  80. this.tableLayoutPanel1.RowCount = 2;
  81. this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
  82. this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
  83. this.tableLayoutPanel1.Size = new System.Drawing.Size(257, 100);
  84. this.tableLayoutPanel1.TabIndex = 0;
  85. //
  86. // txtPort
  87. //
  88. this.txtPort.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
  89. this.txtPort.Font = new System.Drawing.Font("Calibri", 10.8F);
  90. this.txtPort.Location = new System.Drawing.Point(120, 10);
  91. this.txtPort.Name = "txtPort";
  92. this.txtPort.Size = new System.Drawing.Size(134, 29);
  93. this.txtPort.TabIndex = 3;
  94. this.txtPort.Text = "502";
  95. this.txtPort.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  96. //
  97. // lblSwiSta
  98. //
  99. this.lblSwiSta.Anchor = System.Windows.Forms.AnchorStyles.None;
  100. this.lblSwiSta.AutoSize = true;
  101. this.lblSwiSta.Font = new System.Drawing.Font("Calibri", 10.8F);
  102. this.lblSwiSta.Location = new System.Drawing.Point(3, 63);
  103. this.lblSwiSta.Name = "lblSwiSta";
  104. this.lblSwiSta.Size = new System.Drawing.Size(110, 23);
  105. this.lblSwiSta.TabIndex = 1;
  106. this.lblSwiSta.Text = "服务器状态";
  107. //
  108. // btnSerSwitch
  109. //
  110. this.btnSerSwitch.Dock = System.Windows.Forms.DockStyle.Fill;
  111. this.btnSerSwitch.Font = new System.Drawing.Font("Calibri", 10.8F);
  112. this.btnSerSwitch.Location = new System.Drawing.Point(120, 53);
  113. this.btnSerSwitch.Name = "btnSerSwitch";
  114. this.btnSerSwitch.Size = new System.Drawing.Size(134, 44);
  115. this.btnSerSwitch.TabIndex = 2;
  116. this.btnSerSwitch.Text = "开启服务器";
  117. this.btnSerSwitch.UseVisualStyleBackColor = true;
  118. this.btnSerSwitch.Click += new System.EventHandler(this.btnSerSwitch_Click);
  119. //
  120. // lblPort
  121. //
  122. this.lblPort.Anchor = System.Windows.Forms.AnchorStyles.None;
  123. this.lblPort.AutoSize = true;
  124. this.lblPort.Font = new System.Drawing.Font("Calibri", 10.8F);
  125. this.lblPort.Location = new System.Drawing.Point(13, 13);
  126. this.lblPort.Name = "lblPort";
  127. this.lblPort.Size = new System.Drawing.Size(90, 23);
  128. this.lblPort.TabIndex = 0;
  129. this.lblPort.Text = "本地端口";
  130. //
  131. // menuStrip1
  132. //
  133. this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
  134. this.menuStrip1.Location = new System.Drawing.Point(0, 0);
  135. this.menuStrip1.Name = "menuStrip1";
  136. this.menuStrip1.Size = new System.Drawing.Size(965, 24);
  137. this.menuStrip1.TabIndex = 3;
  138. this.menuStrip1.Text = "menuStrip1";
  139. //
  140. // tmr
  141. //
  142. this.tmr.Enabled = true;
  143. this.tmr.Interval = 500;
  144. this.tmr.Tick += new System.EventHandler(this.tmr_Tick);
  145. //
  146. // Form1
  147. //
  148. this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
  149. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  150. this.ClientSize = new System.Drawing.Size(965, 449);
  151. this.Controls.Add(this.tlpAll);
  152. this.Controls.Add(this.menuStrip1);
  153. this.Name = "Form1";
  154. this.Text = "Form1";
  155. this.tlpAll.ResumeLayout(false);
  156. this.tableLayoutPanel1.ResumeLayout(false);
  157. this.tableLayoutPanel1.PerformLayout();
  158. this.ResumeLayout(false);
  159. this.PerformLayout();
  160. }
  161. #endregion
  162. private System.Windows.Forms.TableLayoutPanel tlpAll;
  163. private System.Windows.Forms.RichTextBox rtxHistory;
  164. private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
  165. private System.Windows.Forms.TextBox txtPort;
  166. private System.Windows.Forms.Label lblSwiSta;
  167. private System.Windows.Forms.Button btnSerSwitch;
  168. private System.Windows.Forms.Label lblPort;
  169. private System.Windows.Forms.MenuStrip menuStrip1;
  170. private System.Windows.Forms.Timer tmr;
  171. }
  172. }