RegisterViewerForm.Designer.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. namespace APS7100TestTool.Forms
  2. {
  3. partial class RegisterViewerForm
  4. {
  5. private System.ComponentModel.IContainer components = null;
  6. private System.Windows.Forms.DataGridView dgvRegisters;
  7. private System.Windows.Forms.Label lblStatus;
  8. private System.Windows.Forms.NumericUpDown numRefreshInterval;
  9. private System.Windows.Forms.CheckBox chkAutoRefresh;
  10. private System.Windows.Forms.Button btnRefresh;
  11. private System.Windows.Forms.Button btnClose;
  12. private System.Windows.Forms.GroupBox grpSettings;
  13. private System.Windows.Forms.Label lblInterval;
  14. private System.Windows.Forms.Label lblMs;
  15. private System.Windows.Forms.GroupBox grpCustomView;
  16. private System.Windows.Forms.Label lblStartAddr;
  17. private System.Windows.Forms.NumericUpDown numStartAddr;
  18. private System.Windows.Forms.Label lblCount;
  19. private System.Windows.Forms.NumericUpDown numCount;
  20. private System.Windows.Forms.ComboBox cmbDataType;
  21. private System.Windows.Forms.Button btnAddCustom;
  22. private System.Windows.Forms.Button btnClearCustom;
  23. protected override void Dispose(bool disposing)
  24. {
  25. if (disposing && (components != null))
  26. {
  27. components.Dispose();
  28. }
  29. base.Dispose(disposing);
  30. }
  31. private void InitializeComponent()
  32. {
  33. this.grpSettings = new System.Windows.Forms.GroupBox();
  34. this.chkAutoRefresh = new System.Windows.Forms.CheckBox();
  35. this.lblInterval = new System.Windows.Forms.Label();
  36. this.numRefreshInterval = new System.Windows.Forms.NumericUpDown();
  37. this.lblMs = new System.Windows.Forms.Label();
  38. this.btnRefresh = new System.Windows.Forms.Button();
  39. this.grpCustomView = new System.Windows.Forms.GroupBox();
  40. this.lblStartAddr = new System.Windows.Forms.Label();
  41. this.numStartAddr = new System.Windows.Forms.NumericUpDown();
  42. this.lblCount = new System.Windows.Forms.Label();
  43. this.numCount = new System.Windows.Forms.NumericUpDown();
  44. this.cmbDataType = new System.Windows.Forms.ComboBox();
  45. this.btnAddCustom = new System.Windows.Forms.Button();
  46. this.btnClearCustom = new System.Windows.Forms.Button();
  47. this.dgvRegisters = new System.Windows.Forms.DataGridView();
  48. this.lblStatus = new System.Windows.Forms.Label();
  49. this.btnClose = new System.Windows.Forms.Button();
  50. this.grpSettings.SuspendLayout();
  51. this.grpCustomView.SuspendLayout();
  52. ((System.ComponentModel.ISupportInitialize)(this.numRefreshInterval)).BeginInit();
  53. ((System.ComponentModel.ISupportInitialize)(this.numStartAddr)).BeginInit();
  54. ((System.ComponentModel.ISupportInitialize)(this.numCount)).BeginInit();
  55. ((System.ComponentModel.ISupportInitialize)(this.dgvRegisters)).BeginInit();
  56. this.SuspendLayout();
  57. //
  58. // grpSettings
  59. //
  60. this.grpSettings.Controls.Add(this.chkAutoRefresh);
  61. this.grpSettings.Controls.Add(this.lblInterval);
  62. this.grpSettings.Controls.Add(this.numRefreshInterval);
  63. this.grpSettings.Controls.Add(this.lblMs);
  64. this.grpSettings.Controls.Add(this.btnRefresh);
  65. this.grpSettings.Location = new System.Drawing.Point(15, 15);
  66. this.grpSettings.Name = "grpSettings";
  67. this.grpSettings.Size = new System.Drawing.Size(860, 60);
  68. this.grpSettings.TabIndex = 0;
  69. this.grpSettings.TabStop = false;
  70. this.grpSettings.Text = "刷新设置";
  71. //
  72. // chkAutoRefresh
  73. //
  74. this.chkAutoRefresh.AutoSize = true;
  75. this.chkAutoRefresh.Checked = true;
  76. this.chkAutoRefresh.CheckState = System.Windows.Forms.CheckState.Checked;
  77. this.chkAutoRefresh.Location = new System.Drawing.Point(20, 26);
  78. this.chkAutoRefresh.Name = "chkAutoRefresh";
  79. this.chkAutoRefresh.Size = new System.Drawing.Size(87, 21);
  80. this.chkAutoRefresh.TabIndex = 0;
  81. this.chkAutoRefresh.Text = "自动刷新";
  82. this.chkAutoRefresh.UseVisualStyleBackColor = true;
  83. this.chkAutoRefresh.CheckedChanged += new System.EventHandler(this.ChkAutoRefresh_CheckedChanged);
  84. //
  85. // lblInterval
  86. //
  87. this.lblInterval.AutoSize = true;
  88. this.lblInterval.Location = new System.Drawing.Point(140, 28);
  89. this.lblInterval.Name = "lblInterval";
  90. this.lblInterval.Size = new System.Drawing.Size(47, 17);
  91. this.lblInterval.TabIndex = 1;
  92. this.lblInterval.Text = "间隔:";
  93. //
  94. // numRefreshInterval
  95. //
  96. this.numRefreshInterval.Increment = new decimal(new int[] { 100, 0, 0, 0 });
  97. this.numRefreshInterval.Location = new System.Drawing.Point(200, 24);
  98. this.numRefreshInterval.Maximum = new decimal(new int[] { 10000, 0, 0, 0 });
  99. this.numRefreshInterval.Minimum = new decimal(new int[] { 100, 0, 0, 0 });
  100. this.numRefreshInterval.Name = "numRefreshInterval";
  101. this.numRefreshInterval.Size = new System.Drawing.Size(80, 25);
  102. this.numRefreshInterval.TabIndex = 2;
  103. this.numRefreshInterval.Value = new decimal(new int[] { 500, 0, 0, 0 });
  104. this.numRefreshInterval.ValueChanged += new System.EventHandler(this.NumRefreshInterval_ValueChanged);
  105. //
  106. // lblMs
  107. //
  108. this.lblMs.AutoSize = true;
  109. this.lblMs.Location = new System.Drawing.Point(290, 28);
  110. this.lblMs.Name = "lblMs";
  111. this.lblMs.Size = new System.Drawing.Size(35, 17);
  112. this.lblMs.TabIndex = 3;
  113. this.lblMs.Text = "毫秒";
  114. //
  115. // btnRefresh
  116. //
  117. this.btnRefresh.Location = new System.Drawing.Point(360, 22);
  118. this.btnRefresh.Name = "btnRefresh";
  119. this.btnRefresh.Size = new System.Drawing.Size(120, 30);
  120. this.btnRefresh.TabIndex = 4;
  121. this.btnRefresh.Text = "立即刷新";
  122. this.btnRefresh.UseVisualStyleBackColor = true;
  123. this.btnRefresh.Click += new System.EventHandler(this.BtnRefresh_Click);
  124. //
  125. // grpCustomView
  126. //
  127. this.grpCustomView.Controls.Add(this.lblStartAddr);
  128. this.grpCustomView.Controls.Add(this.numStartAddr);
  129. this.grpCustomView.Controls.Add(this.lblCount);
  130. this.grpCustomView.Controls.Add(this.numCount);
  131. this.grpCustomView.Controls.Add(this.cmbDataType);
  132. this.grpCustomView.Controls.Add(this.btnAddCustom);
  133. this.grpCustomView.Controls.Add(this.btnClearCustom);
  134. this.grpCustomView.Location = new System.Drawing.Point(15, 85);
  135. this.grpCustomView.Name = "grpCustomView";
  136. this.grpCustomView.Size = new System.Drawing.Size(860, 60);
  137. this.grpCustomView.TabIndex = 1;
  138. this.grpCustomView.TabStop = false;
  139. this.grpCustomView.Text = "自定义查看";
  140. //
  141. // lblStartAddr
  142. //
  143. this.lblStartAddr.AutoSize = true;
  144. this.lblStartAddr.Location = new System.Drawing.Point(20, 26);
  145. this.lblStartAddr.Name = "lblStartAddr";
  146. this.lblStartAddr.Size = new System.Drawing.Size(47, 17);
  147. this.lblStartAddr.TabIndex = 0;
  148. this.lblStartAddr.Text = "地址:";
  149. //
  150. // numStartAddr
  151. //
  152. this.numStartAddr.Location = new System.Drawing.Point(80, 22);
  153. this.numStartAddr.Maximum = new decimal(new int[] { 65535, 0, 0, 0 });
  154. this.numStartAddr.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
  155. this.numStartAddr.Name = "numStartAddr";
  156. this.numStartAddr.Size = new System.Drawing.Size(90, 25);
  157. this.numStartAddr.TabIndex = 1;
  158. this.numStartAddr.Value = new decimal(new int[] { 1, 0, 0, 0 });
  159. //
  160. // lblCount
  161. //
  162. this.lblCount.AutoSize = true;
  163. this.lblCount.Location = new System.Drawing.Point(190, 26);
  164. this.lblCount.Name = "lblCount";
  165. this.lblCount.Size = new System.Drawing.Size(47, 17);
  166. this.lblCount.TabIndex = 2;
  167. this.lblCount.Text = "数量:";
  168. //
  169. // numCount
  170. //
  171. this.numCount.Location = new System.Drawing.Point(250, 22);
  172. this.numCount.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
  173. this.numCount.Name = "numCount";
  174. this.numCount.Size = new System.Drawing.Size(70, 25);
  175. this.numCount.TabIndex = 3;
  176. this.numCount.Value = new decimal(new int[] { 1, 0, 0, 0 });
  177. //
  178. // cmbDataType
  179. //
  180. this.cmbDataType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  181. this.cmbDataType.FormattingEnabled = true;
  182. this.cmbDataType.Items.AddRange(new object[] { "UInt16", "Int16", "Float" });
  183. this.cmbDataType.Location = new System.Drawing.Point(340, 22);
  184. this.cmbDataType.Name = "cmbDataType";
  185. this.cmbDataType.Size = new System.Drawing.Size(110, 25);
  186. this.cmbDataType.TabIndex = 4;
  187. //
  188. // btnAddCustom
  189. //
  190. this.btnAddCustom.Location = new System.Drawing.Point(470, 20);
  191. this.btnAddCustom.Name = "btnAddCustom";
  192. this.btnAddCustom.Size = new System.Drawing.Size(120, 30);
  193. this.btnAddCustom.TabIndex = 5;
  194. this.btnAddCustom.Text = "添加监视";
  195. this.btnAddCustom.UseVisualStyleBackColor = true;
  196. this.btnAddCustom.Click += new System.EventHandler(this.BtnAddCustom_Click);
  197. //
  198. // btnClearCustom
  199. //
  200. this.btnClearCustom.Location = new System.Drawing.Point(610, 20);
  201. this.btnClearCustom.Name = "btnClearCustom";
  202. this.btnClearCustom.Size = new System.Drawing.Size(130, 30);
  203. this.btnClearCustom.TabIndex = 6;
  204. this.btnClearCustom.Text = "清除自定义";
  205. this.btnClearCustom.UseVisualStyleBackColor = true;
  206. this.btnClearCustom.Click += new System.EventHandler(this.BtnClearCustom_Click);
  207. //
  208. // dgvRegisters
  209. //
  210. this.dgvRegisters.AllowUserToAddRows = false;
  211. this.dgvRegisters.AllowUserToDeleteRows = false;
  212. this.dgvRegisters.AlternatingRowsDefaultCellStyle = new System.Windows.Forms.DataGridViewCellStyle() { BackColor = System.Drawing.Color.FromArgb(245, 248, 255) };
  213. this.dgvRegisters.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
  214. this.dgvRegisters.BackgroundColor = System.Drawing.Color.White;
  215. this.dgvRegisters.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
  216. this.dgvRegisters.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
  217. this.dgvRegisters.Location = new System.Drawing.Point(15, 155);
  218. this.dgvRegisters.Name = "dgvRegisters";
  219. this.dgvRegisters.ReadOnly = true;
  220. this.dgvRegisters.RowHeadersVisible = false;
  221. this.dgvRegisters.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
  222. this.dgvRegisters.Size = new System.Drawing.Size(860, 350);
  223. this.dgvRegisters.TabIndex = 2;
  224. //
  225. // lblStatus
  226. //
  227. this.lblStatus.AutoSize = true;
  228. this.lblStatus.ForeColor = System.Drawing.Color.Gray;
  229. this.lblStatus.Location = new System.Drawing.Point(15, 515);
  230. this.lblStatus.Name = "lblStatus";
  231. this.lblStatus.Size = new System.Drawing.Size(71, 17);
  232. this.lblStatus.TabIndex = 3;
  233. this.lblStatus.Text = "状态: 就绪";
  234. //
  235. // btnClose
  236. //
  237. this.btnClose.Location = new System.Drawing.Point(755, 510);
  238. this.btnClose.Name = "btnClose";
  239. this.btnClose.Size = new System.Drawing.Size(120, 32);
  240. this.btnClose.TabIndex = 4;
  241. this.btnClose.Text = "关闭";
  242. this.btnClose.UseVisualStyleBackColor = true;
  243. this.btnClose.Click += new System.EventHandler(this.BtnClose_Click);
  244. //
  245. // RegisterViewerForm
  246. //
  247. this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
  248. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  249. this.ClientSize = new System.Drawing.Size(890, 555);
  250. this.Controls.Add(this.grpSettings);
  251. this.Controls.Add(this.grpCustomView);
  252. this.Controls.Add(this.dgvRegisters);
  253. this.Controls.Add(this.lblStatus);
  254. this.Controls.Add(this.btnClose);
  255. this.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  256. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
  257. this.MaximizeBox = false;
  258. this.MinimizeBox = false;
  259. this.Name = "RegisterViewerForm";
  260. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
  261. this.Text = "Modbus 寄存器查看器";
  262. this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.RegisterViewerForm_FormClosing);
  263. this.grpSettings.ResumeLayout(false);
  264. this.grpSettings.PerformLayout();
  265. this.grpCustomView.ResumeLayout(false);
  266. this.grpCustomView.PerformLayout();
  267. ((System.ComponentModel.ISupportInitialize)(this.numRefreshInterval)).EndInit();
  268. ((System.ComponentModel.ISupportInitialize)(this.numStartAddr)).EndInit();
  269. ((System.ComponentModel.ISupportInitialize)(this.numCount)).EndInit();
  270. ((System.ComponentModel.ISupportInitialize)(this.dgvRegisters)).EndInit();
  271. this.ResumeLayout(false);
  272. this.PerformLayout();
  273. }
  274. }
  275. }