| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298 |
- namespace APS7100TestTool.Forms
- {
- partial class RegisterViewerForm
- {
- private System.ComponentModel.IContainer components = null;
- private System.Windows.Forms.DataGridView dgvRegisters;
- private System.Windows.Forms.Label lblStatus;
- private System.Windows.Forms.NumericUpDown numRefreshInterval;
- private System.Windows.Forms.CheckBox chkAutoRefresh;
- private System.Windows.Forms.Button btnRefresh;
- private System.Windows.Forms.Button btnClose;
- private System.Windows.Forms.GroupBox grpSettings;
- private System.Windows.Forms.Label lblInterval;
- private System.Windows.Forms.Label lblMs;
- private System.Windows.Forms.GroupBox grpCustomView;
- private System.Windows.Forms.Label lblStartAddr;
- private System.Windows.Forms.NumericUpDown numStartAddr;
- private System.Windows.Forms.Label lblCount;
- private System.Windows.Forms.NumericUpDown numCount;
- private System.Windows.Forms.ComboBox cmbDataType;
- private System.Windows.Forms.Button btnAddCustom;
- private System.Windows.Forms.Button btnClearCustom;
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void InitializeComponent()
- {
- this.grpSettings = new System.Windows.Forms.GroupBox();
- this.chkAutoRefresh = new System.Windows.Forms.CheckBox();
- this.lblInterval = new System.Windows.Forms.Label();
- this.numRefreshInterval = new System.Windows.Forms.NumericUpDown();
- this.lblMs = new System.Windows.Forms.Label();
- this.btnRefresh = new System.Windows.Forms.Button();
- this.grpCustomView = new System.Windows.Forms.GroupBox();
- this.lblStartAddr = new System.Windows.Forms.Label();
- this.numStartAddr = new System.Windows.Forms.NumericUpDown();
- this.lblCount = new System.Windows.Forms.Label();
- this.numCount = new System.Windows.Forms.NumericUpDown();
- this.cmbDataType = new System.Windows.Forms.ComboBox();
- this.btnAddCustom = new System.Windows.Forms.Button();
- this.btnClearCustom = new System.Windows.Forms.Button();
- this.dgvRegisters = new System.Windows.Forms.DataGridView();
- this.lblStatus = new System.Windows.Forms.Label();
- this.btnClose = new System.Windows.Forms.Button();
- this.grpSettings.SuspendLayout();
- this.grpCustomView.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.numRefreshInterval)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.numStartAddr)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.numCount)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dgvRegisters)).BeginInit();
- this.SuspendLayout();
- //
- // grpSettings
- //
- this.grpSettings.Controls.Add(this.chkAutoRefresh);
- this.grpSettings.Controls.Add(this.lblInterval);
- this.grpSettings.Controls.Add(this.numRefreshInterval);
- this.grpSettings.Controls.Add(this.lblMs);
- this.grpSettings.Controls.Add(this.btnRefresh);
- this.grpSettings.Location = new System.Drawing.Point(15, 15);
- this.grpSettings.Name = "grpSettings";
- this.grpSettings.Size = new System.Drawing.Size(860, 60);
- this.grpSettings.TabIndex = 0;
- this.grpSettings.TabStop = false;
- this.grpSettings.Text = "刷新设置";
- //
- // chkAutoRefresh
- //
- this.chkAutoRefresh.AutoSize = true;
- this.chkAutoRefresh.Checked = true;
- this.chkAutoRefresh.CheckState = System.Windows.Forms.CheckState.Checked;
- this.chkAutoRefresh.Location = new System.Drawing.Point(20, 26);
- this.chkAutoRefresh.Name = "chkAutoRefresh";
- this.chkAutoRefresh.Size = new System.Drawing.Size(87, 21);
- this.chkAutoRefresh.TabIndex = 0;
- this.chkAutoRefresh.Text = "自动刷新";
- this.chkAutoRefresh.UseVisualStyleBackColor = true;
- this.chkAutoRefresh.CheckedChanged += new System.EventHandler(this.ChkAutoRefresh_CheckedChanged);
- //
- // lblInterval
- //
- this.lblInterval.AutoSize = true;
- this.lblInterval.Location = new System.Drawing.Point(140, 28);
- this.lblInterval.Name = "lblInterval";
- this.lblInterval.Size = new System.Drawing.Size(47, 17);
- this.lblInterval.TabIndex = 1;
- this.lblInterval.Text = "间隔:";
- //
- // numRefreshInterval
- //
- this.numRefreshInterval.Increment = new decimal(new int[] { 100, 0, 0, 0 });
- this.numRefreshInterval.Location = new System.Drawing.Point(200, 24);
- this.numRefreshInterval.Maximum = new decimal(new int[] { 10000, 0, 0, 0 });
- this.numRefreshInterval.Minimum = new decimal(new int[] { 100, 0, 0, 0 });
- this.numRefreshInterval.Name = "numRefreshInterval";
- this.numRefreshInterval.Size = new System.Drawing.Size(80, 25);
- this.numRefreshInterval.TabIndex = 2;
- this.numRefreshInterval.Value = new decimal(new int[] { 500, 0, 0, 0 });
- this.numRefreshInterval.ValueChanged += new System.EventHandler(this.NumRefreshInterval_ValueChanged);
- //
- // lblMs
- //
- this.lblMs.AutoSize = true;
- this.lblMs.Location = new System.Drawing.Point(290, 28);
- this.lblMs.Name = "lblMs";
- this.lblMs.Size = new System.Drawing.Size(35, 17);
- this.lblMs.TabIndex = 3;
- this.lblMs.Text = "毫秒";
- //
- // btnRefresh
- //
- this.btnRefresh.Location = new System.Drawing.Point(360, 22);
- this.btnRefresh.Name = "btnRefresh";
- this.btnRefresh.Size = new System.Drawing.Size(120, 30);
- this.btnRefresh.TabIndex = 4;
- this.btnRefresh.Text = "立即刷新";
- this.btnRefresh.UseVisualStyleBackColor = true;
- this.btnRefresh.Click += new System.EventHandler(this.BtnRefresh_Click);
- //
- // grpCustomView
- //
- this.grpCustomView.Controls.Add(this.lblStartAddr);
- this.grpCustomView.Controls.Add(this.numStartAddr);
- this.grpCustomView.Controls.Add(this.lblCount);
- this.grpCustomView.Controls.Add(this.numCount);
- this.grpCustomView.Controls.Add(this.cmbDataType);
- this.grpCustomView.Controls.Add(this.btnAddCustom);
- this.grpCustomView.Controls.Add(this.btnClearCustom);
- this.grpCustomView.Location = new System.Drawing.Point(15, 85);
- this.grpCustomView.Name = "grpCustomView";
- this.grpCustomView.Size = new System.Drawing.Size(860, 60);
- this.grpCustomView.TabIndex = 1;
- this.grpCustomView.TabStop = false;
- this.grpCustomView.Text = "自定义查看";
- //
- // lblStartAddr
- //
- this.lblStartAddr.AutoSize = true;
- this.lblStartAddr.Location = new System.Drawing.Point(20, 26);
- this.lblStartAddr.Name = "lblStartAddr";
- this.lblStartAddr.Size = new System.Drawing.Size(47, 17);
- this.lblStartAddr.TabIndex = 0;
- this.lblStartAddr.Text = "地址:";
- //
- // numStartAddr
- //
- this.numStartAddr.Location = new System.Drawing.Point(80, 22);
- this.numStartAddr.Maximum = new decimal(new int[] { 65535, 0, 0, 0 });
- this.numStartAddr.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
- this.numStartAddr.Name = "numStartAddr";
- this.numStartAddr.Size = new System.Drawing.Size(90, 25);
- this.numStartAddr.TabIndex = 1;
- this.numStartAddr.Value = new decimal(new int[] { 1, 0, 0, 0 });
- //
- // lblCount
- //
- this.lblCount.AutoSize = true;
- this.lblCount.Location = new System.Drawing.Point(190, 26);
- this.lblCount.Name = "lblCount";
- this.lblCount.Size = new System.Drawing.Size(47, 17);
- this.lblCount.TabIndex = 2;
- this.lblCount.Text = "数量:";
- //
- // numCount
- //
- this.numCount.Location = new System.Drawing.Point(250, 22);
- this.numCount.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
- this.numCount.Name = "numCount";
- this.numCount.Size = new System.Drawing.Size(70, 25);
- this.numCount.TabIndex = 3;
- this.numCount.Value = new decimal(new int[] { 1, 0, 0, 0 });
- //
- // cmbDataType
- //
- this.cmbDataType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.cmbDataType.FormattingEnabled = true;
- this.cmbDataType.Items.AddRange(new object[] { "UInt16", "Int16", "Float" });
- this.cmbDataType.Location = new System.Drawing.Point(340, 22);
- this.cmbDataType.Name = "cmbDataType";
- this.cmbDataType.Size = new System.Drawing.Size(110, 25);
- this.cmbDataType.TabIndex = 4;
- //
- // btnAddCustom
- //
- this.btnAddCustom.Location = new System.Drawing.Point(470, 20);
- this.btnAddCustom.Name = "btnAddCustom";
- this.btnAddCustom.Size = new System.Drawing.Size(120, 30);
- this.btnAddCustom.TabIndex = 5;
- this.btnAddCustom.Text = "添加监视";
- this.btnAddCustom.UseVisualStyleBackColor = true;
- this.btnAddCustom.Click += new System.EventHandler(this.BtnAddCustom_Click);
- //
- // btnClearCustom
- //
- this.btnClearCustom.Location = new System.Drawing.Point(610, 20);
- this.btnClearCustom.Name = "btnClearCustom";
- this.btnClearCustom.Size = new System.Drawing.Size(130, 30);
- this.btnClearCustom.TabIndex = 6;
- this.btnClearCustom.Text = "清除自定义";
- this.btnClearCustom.UseVisualStyleBackColor = true;
- this.btnClearCustom.Click += new System.EventHandler(this.BtnClearCustom_Click);
- //
- // dgvRegisters
- //
- this.dgvRegisters.AllowUserToAddRows = false;
- this.dgvRegisters.AllowUserToDeleteRows = false;
- this.dgvRegisters.AlternatingRowsDefaultCellStyle = new System.Windows.Forms.DataGridViewCellStyle() { BackColor = System.Drawing.Color.FromArgb(245, 248, 255) };
- this.dgvRegisters.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
- this.dgvRegisters.BackgroundColor = System.Drawing.Color.White;
- this.dgvRegisters.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
- this.dgvRegisters.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dgvRegisters.Location = new System.Drawing.Point(15, 155);
- this.dgvRegisters.Name = "dgvRegisters";
- this.dgvRegisters.ReadOnly = true;
- this.dgvRegisters.RowHeadersVisible = false;
- this.dgvRegisters.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.dgvRegisters.Size = new System.Drawing.Size(860, 350);
- this.dgvRegisters.TabIndex = 2;
- //
- // lblStatus
- //
- this.lblStatus.AutoSize = true;
- this.lblStatus.ForeColor = System.Drawing.Color.Gray;
- this.lblStatus.Location = new System.Drawing.Point(15, 515);
- this.lblStatus.Name = "lblStatus";
- this.lblStatus.Size = new System.Drawing.Size(71, 17);
- this.lblStatus.TabIndex = 3;
- this.lblStatus.Text = "状态: 就绪";
- //
- // btnClose
- //
- this.btnClose.Location = new System.Drawing.Point(755, 510);
- this.btnClose.Name = "btnClose";
- this.btnClose.Size = new System.Drawing.Size(120, 32);
- this.btnClose.TabIndex = 4;
- this.btnClose.Text = "关闭";
- this.btnClose.UseVisualStyleBackColor = true;
- this.btnClose.Click += new System.EventHandler(this.BtnClose_Click);
- //
- // RegisterViewerForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(890, 555);
- this.Controls.Add(this.grpSettings);
- this.Controls.Add(this.grpCustomView);
- this.Controls.Add(this.dgvRegisters);
- this.Controls.Add(this.lblStatus);
- this.Controls.Add(this.btnClose);
- this.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "RegisterViewerForm";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
- this.Text = "Modbus 寄存器查看器";
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.RegisterViewerForm_FormClosing);
- this.grpSettings.ResumeLayout(false);
- this.grpSettings.PerformLayout();
- this.grpCustomView.ResumeLayout(false);
- this.grpCustomView.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.numRefreshInterval)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.numStartAddr)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.numCount)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dgvRegisters)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
- }
- }
- }
|