新生命码神工具,代码生成、网络工具、API工具、串口工具、正则工具、图标工具、加解密工具、地图接口。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

329 lines
14 KiB

  1. namespace XNet
  2. {
  3. partial class FrmModbusSlave
  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.txtReceive = new System.Windows.Forms.RichTextBox();
  30. this.btnConnect = new System.Windows.Forms.Button();
  31. this.timer1 = new System.Windows.Forms.Timer(this.components);
  32. this.label1 = new System.Windows.Forms.Label();
  33. this.lbLocal = new System.Windows.Forms.Label();
  34. this.cbMode = new System.Windows.Forms.ComboBox();
  35. this.numPort = new System.Windows.Forms.NumericUpDown();
  36. this.pnlSetting = new System.Windows.Forms.Panel();
  37. this.numHost = new System.Windows.Forms.NumericUpDown();
  38. this.label4 = new System.Windows.Forms.Label();
  39. this.label3 = new System.Windows.Forms.Label();
  40. this.numCount = new System.Windows.Forms.NumericUpDown();
  41. this.numAddress = new System.Windows.Forms.NumericUpDown();
  42. this.label2 = new System.Windows.Forms.Label();
  43. this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
  44. this.dataGridView1 = new System.Windows.Forms.DataGridView();
  45. ((System.ComponentModel.ISupportInitialize)(this.numPort)).BeginInit();
  46. this.pnlSetting.SuspendLayout();
  47. ((System.ComponentModel.ISupportInitialize)(this.numHost)).BeginInit();
  48. ((System.ComponentModel.ISupportInitialize)(this.numCount)).BeginInit();
  49. ((System.ComponentModel.ISupportInitialize)(this.numAddress)).BeginInit();
  50. ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
  51. this.SuspendLayout();
  52. //
  53. // txtReceive
  54. //
  55. this.txtReceive.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  56. | System.Windows.Forms.AnchorStyles.Left)
  57. | System.Windows.Forms.AnchorStyles.Right)));
  58. this.txtReceive.HideSelection = false;
  59. this.txtReceive.Location = new System.Drawing.Point(468, 55);
  60. this.txtReceive.Margin = new System.Windows.Forms.Padding(4);
  61. this.txtReceive.Name = "txtReceive";
  62. this.txtReceive.Size = new System.Drawing.Size(404, 407);
  63. this.txtReceive.TabIndex = 1;
  64. this.txtReceive.Text = "";
  65. //
  66. // btnConnect
  67. //
  68. this.btnConnect.Location = new System.Drawing.Point(783, 11);
  69. this.btnConnect.Margin = new System.Windows.Forms.Padding(4);
  70. this.btnConnect.Name = "btnConnect";
  71. this.btnConnect.Size = new System.Drawing.Size(89, 36);
  72. this.btnConnect.TabIndex = 3;
  73. this.btnConnect.Text = "开始";
  74. this.btnConnect.UseVisualStyleBackColor = true;
  75. this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click);
  76. //
  77. // timer1
  78. //
  79. this.timer1.Enabled = true;
  80. this.timer1.Interval = 300;
  81. this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
  82. //
  83. // label1
  84. //
  85. this.label1.AutoSize = true;
  86. this.label1.Location = new System.Drawing.Point(7, 11);
  87. this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  88. this.label1.Name = "label1";
  89. this.label1.Size = new System.Drawing.Size(37, 15);
  90. this.label1.TabIndex = 6;
  91. this.label1.Text = "模式";
  92. //
  93. // lbLocal
  94. //
  95. this.lbLocal.AutoSize = true;
  96. this.lbLocal.Location = new System.Drawing.Point(467, 11);
  97. this.lbLocal.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  98. this.lbLocal.Name = "lbLocal";
  99. this.lbLocal.Size = new System.Drawing.Size(52, 15);
  100. this.lbLocal.TabIndex = 7;
  101. this.lbLocal.Text = "地址:";
  102. //
  103. // cbMode
  104. //
  105. this.cbMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  106. this.cbMode.FormattingEnabled = true;
  107. this.cbMode.Items.AddRange(new object[] {
  108. "0x0000",
  109. "0x7777",
  110. "0xFFFF",
  111. "递增",
  112. "静态随机",
  113. "动态随机"});
  114. this.cbMode.Location = new System.Drawing.Point(55, 7);
  115. this.cbMode.Margin = new System.Windows.Forms.Padding(4);
  116. this.cbMode.Name = "cbMode";
  117. this.cbMode.Size = new System.Drawing.Size(123, 23);
  118. this.cbMode.TabIndex = 9;
  119. //
  120. // numPort
  121. //
  122. this.numPort.Location = new System.Drawing.Point(246, 6);
  123. this.numPort.Margin = new System.Windows.Forms.Padding(4);
  124. this.numPort.Maximum = new decimal(new int[] {
  125. 65535,
  126. 0,
  127. 0,
  128. 0});
  129. this.numPort.Minimum = new decimal(new int[] {
  130. 1,
  131. 0,
  132. 0,
  133. 0});
  134. this.numPort.Name = "numPort";
  135. this.numPort.Size = new System.Drawing.Size(68, 25);
  136. this.numPort.TabIndex = 11;
  137. this.numPort.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  138. this.toolTip1.SetToolTip(this.numPort, "端口");
  139. this.numPort.Value = new decimal(new int[] {
  140. 502,
  141. 0,
  142. 0,
  143. 0});
  144. //
  145. // pnlSetting
  146. //
  147. this.pnlSetting.Controls.Add(this.numHost);
  148. this.pnlSetting.Controls.Add(this.label4);
  149. this.pnlSetting.Controls.Add(this.label3);
  150. this.pnlSetting.Controls.Add(this.numCount);
  151. this.pnlSetting.Controls.Add(this.numPort);
  152. this.pnlSetting.Controls.Add(this.numAddress);
  153. this.pnlSetting.Controls.Add(this.label2);
  154. this.pnlSetting.Controls.Add(this.label1);
  155. this.pnlSetting.Controls.Add(this.lbLocal);
  156. this.pnlSetting.Controls.Add(this.cbMode);
  157. this.pnlSetting.Location = new System.Drawing.Point(12, 10);
  158. this.pnlSetting.Margin = new System.Windows.Forms.Padding(4);
  159. this.pnlSetting.Name = "pnlSetting";
  160. this.pnlSetting.Size = new System.Drawing.Size(763, 39);
  161. this.pnlSetting.TabIndex = 13;
  162. //
  163. // numHost
  164. //
  165. this.numHost.Location = new System.Drawing.Point(381, 6);
  166. this.numHost.Margin = new System.Windows.Forms.Padding(4);
  167. this.numHost.Maximum = new decimal(new int[] {
  168. 65535,
  169. 0,
  170. 0,
  171. 0});
  172. this.numHost.Minimum = new decimal(new int[] {
  173. 1,
  174. 0,
  175. 0,
  176. 0});
  177. this.numHost.Name = "numHost";
  178. this.numHost.Size = new System.Drawing.Size(68, 25);
  179. this.numHost.TabIndex = 21;
  180. this.numHost.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  181. this.toolTip1.SetToolTip(this.numHost, "端口");
  182. this.numHost.Value = new decimal(new int[] {
  183. 1,
  184. 0,
  185. 0,
  186. 0});
  187. //
  188. // label4
  189. //
  190. this.label4.AutoSize = true;
  191. this.label4.Location = new System.Drawing.Point(331, 11);
  192. this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  193. this.label4.Name = "label4";
  194. this.label4.Size = new System.Drawing.Size(52, 15);
  195. this.label4.TabIndex = 22;
  196. this.label4.Text = "站号:";
  197. //
  198. // label3
  199. //
  200. this.label3.AutoSize = true;
  201. this.label3.Location = new System.Drawing.Point(616, 11);
  202. this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  203. this.label3.Name = "label3";
  204. this.label3.Size = new System.Drawing.Size(52, 15);
  205. this.label3.TabIndex = 20;
  206. this.label3.Text = "个数:";
  207. //
  208. // numCount
  209. //
  210. this.numCount.Location = new System.Drawing.Point(676, 6);
  211. this.numCount.Margin = new System.Windows.Forms.Padding(4);
  212. this.numCount.Maximum = new decimal(new int[] {
  213. 65535,
  214. 0,
  215. 0,
  216. 0});
  217. this.numCount.Minimum = new decimal(new int[] {
  218. 1,
  219. 0,
  220. 0,
  221. 0});
  222. this.numCount.Name = "numCount";
  223. this.numCount.Size = new System.Drawing.Size(68, 25);
  224. this.numCount.TabIndex = 18;
  225. this.numCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  226. this.toolTip1.SetToolTip(this.numCount, "端口");
  227. this.numCount.Value = new decimal(new int[] {
  228. 2000,
  229. 0,
  230. 0,
  231. 0});
  232. //
  233. // numAddress
  234. //
  235. this.numAddress.Location = new System.Drawing.Point(520, 6);
  236. this.numAddress.Margin = new System.Windows.Forms.Padding(4);
  237. this.numAddress.Maximum = new decimal(new int[] {
  238. 65535,
  239. 0,
  240. 0,
  241. 0});
  242. this.numAddress.Minimum = new decimal(new int[] {
  243. 1,
  244. 0,
  245. 0,
  246. 0});
  247. this.numAddress.Name = "numAddress";
  248. this.numAddress.Size = new System.Drawing.Size(85, 25);
  249. this.numAddress.TabIndex = 17;
  250. this.numAddress.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  251. this.toolTip1.SetToolTip(this.numAddress, "端口");
  252. this.numAddress.Value = new decimal(new int[] {
  253. 40000,
  254. 0,
  255. 0,
  256. 0});
  257. //
  258. // label2
  259. //
  260. this.label2.AutoSize = true;
  261. this.label2.Location = new System.Drawing.Point(199, 11);
  262. this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  263. this.label2.Name = "label2";
  264. this.label2.Size = new System.Drawing.Size(52, 15);
  265. this.label2.TabIndex = 19;
  266. this.label2.Text = "端口:";
  267. //
  268. // dataGridView1
  269. //
  270. this.dataGridView1.AllowUserToAddRows = false;
  271. this.dataGridView1.AllowUserToDeleteRows = false;
  272. this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  273. | System.Windows.Forms.AnchorStyles.Left)));
  274. this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
  275. this.dataGridView1.Location = new System.Drawing.Point(12, 56);
  276. this.dataGridView1.Name = "dataGridView1";
  277. this.dataGridView1.RowHeadersWidth = 51;
  278. this.dataGridView1.RowTemplate.Height = 27;
  279. this.dataGridView1.Size = new System.Drawing.Size(449, 406);
  280. this.dataGridView1.TabIndex = 14;
  281. //
  282. // FrmModbusSlave
  283. //
  284. this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
  285. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  286. this.ClientSize = new System.Drawing.Size(889, 474);
  287. this.Controls.Add(this.txtReceive);
  288. this.Controls.Add(this.dataGridView1);
  289. this.Controls.Add(this.pnlSetting);
  290. this.Controls.Add(this.btnConnect);
  291. this.Margin = new System.Windows.Forms.Padding(4);
  292. this.Name = "FrmModbusSlave";
  293. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  294. this.Text = "网络调试";
  295. this.Load += new System.EventHandler(this.FrmMain_Load);
  296. ((System.ComponentModel.ISupportInitialize)(this.numPort)).EndInit();
  297. this.pnlSetting.ResumeLayout(false);
  298. this.pnlSetting.PerformLayout();
  299. ((System.ComponentModel.ISupportInitialize)(this.numHost)).EndInit();
  300. ((System.ComponentModel.ISupportInitialize)(this.numCount)).EndInit();
  301. ((System.ComponentModel.ISupportInitialize)(this.numAddress)).EndInit();
  302. ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
  303. this.ResumeLayout(false);
  304. }
  305. #endregion
  306. private System.Windows.Forms.Button btnConnect;
  307. private System.Windows.Forms.Timer timer1;
  308. private System.Windows.Forms.RichTextBox txtReceive;
  309. private System.Windows.Forms.Label label1;
  310. private System.Windows.Forms.Label lbLocal;
  311. private System.Windows.Forms.ComboBox cbMode;
  312. private System.Windows.Forms.NumericUpDown numPort;
  313. private System.Windows.Forms.Panel pnlSetting;
  314. private System.Windows.Forms.ToolTip toolTip1;
  315. private System.Windows.Forms.NumericUpDown numCount;
  316. private System.Windows.Forms.NumericUpDown numAddress;
  317. private System.Windows.Forms.DataGridView dataGridView1;
  318. private System.Windows.Forms.Label label3;
  319. private System.Windows.Forms.Label label2;
  320. private System.Windows.Forms.Label label4;
  321. private System.Windows.Forms.NumericUpDown numHost;
  322. }
  323. }