namespace APS7100TestTool.Forms { partial class ModbusConfigForm { private System.ComponentModel.IContainer components = null; private System.Windows.Forms.DataGridView dgvConfig; private System.Windows.Forms.Panel pnlBottom; private System.Windows.Forms.Panel pnlHelp; private System.Windows.Forms.Label lblHelpTitle; private System.Windows.Forms.Label lblHelpContent; private System.Windows.Forms.Button btnToggleHelp; private System.Windows.Forms.Button btnImport; private System.Windows.Forms.Button btnExport; private System.Windows.Forms.Button btnSave; private System.Windows.Forms.Button btnCancel; // 右键菜单 private System.Windows.Forms.ContextMenuStrip contextMenuGrid; private System.Windows.Forms.ToolStripMenuItem menuInsertAbove; private System.Windows.Forms.ToolStripMenuItem menuInsertBelow; private System.Windows.Forms.ToolStripMenuItem menuDeleteRow; private System.Windows.Forms.ToolStripMenuItem menuCopyRow; private System.Windows.Forms.ToolStripMenuItem menuPasteRow; private System.Windows.Forms.ToolStripSeparator menuSeparator1; private System.Windows.Forms.ToolStripSeparator menuSeparator2; protected override void Dispose(bool disposing) { if (disposing && (components != null)) components.Dispose(); base.Dispose(disposing); } private void InitializeComponent() { this.dgvConfig = new System.Windows.Forms.DataGridView(); this.pnlBottom = new System.Windows.Forms.Panel(); this.pnlHelp = new System.Windows.Forms.Panel(); this.lblHelpTitle = new System.Windows.Forms.Label(); this.lblHelpContent = new System.Windows.Forms.Label(); this.btnToggleHelp = new System.Windows.Forms.Button(); this.btnImport = new System.Windows.Forms.Button(); this.btnExport = new System.Windows.Forms.Button(); this.btnSave = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.dgvConfig)).BeginInit(); this.pnlBottom.SuspendLayout(); this.pnlHelp.SuspendLayout(); this.SuspendLayout(); // pnlHelp - 帮助说明面板 this.pnlHelp.BackColor = System.Drawing.Color.FromArgb(240, 248, 255); this.pnlHelp.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pnlHelp.Controls.Add(this.lblHelpTitle); this.pnlHelp.Controls.Add(this.lblHelpContent); this.pnlHelp.Dock = System.Windows.Forms.DockStyle.Top; this.pnlHelp.Location = new System.Drawing.Point(0, 0); this.pnlHelp.Name = "pnlHelp"; this.pnlHelp.Padding = new System.Windows.Forms.Padding(10, 5, 10, 5); this.pnlHelp.Size = new System.Drawing.Size(900, 85); this.pnlHelp.TabIndex = 2; // lblHelpTitle this.lblHelpTitle.AutoSize = true; this.lblHelpTitle.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold); this.lblHelpTitle.ForeColor = System.Drawing.Color.FromArgb(0, 102, 204); this.lblHelpTitle.Location = new System.Drawing.Point(10, 5); this.lblHelpTitle.Name = "lblHelpTitle"; this.lblHelpTitle.Size = new System.Drawing.Size(200, 17); this.lblHelpTitle.Text = "📌 地址配置说明 (鼠标悬停列标题查看详情)"; // lblHelpContent this.lblHelpContent.AutoSize = true; this.lblHelpContent.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblHelpContent.ForeColor = System.Drawing.Color.FromArgb(64, 64, 64); this.lblHelpContent.Location = new System.Drawing.Point(10, 26); this.lblHelpContent.Name = "lblHelpContent"; this.lblHelpContent.Size = new System.Drawing.Size(880, 51); this.lblHelpContent.Text = "【寄存器地址+类型】主地址,Write模式触发命令,Read模式存放返回值。Float占2个寄存器,Int16占1个。\r\n" + "【数据地址+类型】配合触发模式使用,从此地址读取实际数据值(默认Float)。\r\n" + " 例: 寄存器100(Int16)+触发值1 | 数据地址101(Float) → 当100写入1时,从101-102读取浮点值发送命令"; // contextMenuGrid - 右键菜单 this.contextMenuGrid = new System.Windows.Forms.ContextMenuStrip(); this.menuInsertAbove = new System.Windows.Forms.ToolStripMenuItem(); this.menuInsertBelow = new System.Windows.Forms.ToolStripMenuItem(); this.menuSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.menuCopyRow = new System.Windows.Forms.ToolStripMenuItem(); this.menuPasteRow = new System.Windows.Forms.ToolStripMenuItem(); this.menuSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.menuDeleteRow = new System.Windows.Forms.ToolStripMenuItem(); this.menuInsertAbove.Text = "在上方插入行(&I)"; this.menuInsertAbove.Click += new System.EventHandler(this.menuInsertAbove_Click); this.menuInsertBelow.Text = "在下方插入行(&B)"; this.menuInsertBelow.Click += new System.EventHandler(this.menuInsertBelow_Click); this.menuCopyRow.Text = "复制行(&C)"; this.menuCopyRow.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C))); this.menuCopyRow.Click += new System.EventHandler(this.menuCopyRow_Click); this.menuPasteRow.Text = "粘贴行(&V)"; this.menuPasteRow.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V))); this.menuPasteRow.Click += new System.EventHandler(this.menuPasteRow_Click); this.menuDeleteRow.Text = "删除行(&D)"; this.menuDeleteRow.ShortcutKeys = System.Windows.Forms.Keys.Delete; this.menuDeleteRow.Click += new System.EventHandler(this.menuDeleteRow_Click); this.contextMenuGrid.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuInsertAbove, this.menuInsertBelow, this.menuSeparator1, this.menuCopyRow, this.menuPasteRow, this.menuSeparator2, this.menuDeleteRow }); // dgvConfig this.dgvConfig.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvConfig.ContextMenuStrip = this.contextMenuGrid; this.dgvConfig.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvConfig.Location = new System.Drawing.Point(0, 85); this.dgvConfig.Name = "dgvConfig"; this.dgvConfig.RowTemplate.Height = 25; this.dgvConfig.Size = new System.Drawing.Size(900, 365); this.dgvConfig.TabIndex = 0; // pnlBottom this.pnlBottom.Controls.Add(this.btnToggleHelp); this.pnlBottom.Controls.Add(this.btnImport); this.pnlBottom.Controls.Add(this.btnExport); this.pnlBottom.Controls.Add(this.btnSave); this.pnlBottom.Controls.Add(this.btnCancel); this.pnlBottom.Dock = System.Windows.Forms.DockStyle.Bottom; this.pnlBottom.Location = new System.Drawing.Point(0, 450); this.pnlBottom.Name = "pnlBottom"; this.pnlBottom.Size = new System.Drawing.Size(900, 50); this.pnlBottom.TabIndex = 1; // btnToggleHelp this.btnToggleHelp.Location = new System.Drawing.Point(210, 12); this.btnToggleHelp.Name = "btnToggleHelp"; this.btnToggleHelp.Size = new System.Drawing.Size(90, 30); this.btnToggleHelp.Text = "隐藏说明"; this.btnToggleHelp.UseVisualStyleBackColor = true; this.btnToggleHelp.Click += new System.EventHandler(this.btnToggleHelp_Click); // btnImport this.btnImport.Location = new System.Drawing.Point(12, 12); this.btnImport.Name = "btnImport"; this.btnImport.Size = new System.Drawing.Size(90, 30); this.btnImport.Text = "导入 Excel"; this.btnImport.UseVisualStyleBackColor = true; this.btnImport.Click += new System.EventHandler(this.btnImport_Click); // btnExport this.btnExport.Location = new System.Drawing.Point(108, 12); this.btnExport.Name = "btnExport"; this.btnExport.Size = new System.Drawing.Size(90, 30); this.btnExport.Text = "导出 Excel"; this.btnExport.UseVisualStyleBackColor = true; this.btnExport.Click += new System.EventHandler(this.btnExport_Click); // btnSave this.btnSave.Location = new System.Drawing.Point(700, 12); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(90, 30); this.btnSave.Text = "保存并应用"; this.btnSave.UseVisualStyleBackColor = true; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // btnCancel this.btnCancel.Location = new System.Drawing.Point(796, 12); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(90, 30); this.btnCancel.Text = "取消"; this.btnCancel.UseVisualStyleBackColor = true; this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; // ModbusConfigForm this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(900, 500); this.Controls.Add(this.dgvConfig); this.Controls.Add(this.pnlHelp); this.Controls.Add(this.pnlBottom); this.Name = "ModbusConfigForm"; this.Text = "Modbus 配置编辑器"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.MinimumSize = new System.Drawing.Size(800, 400); ((System.ComponentModel.ISupportInitialize)(this.dgvConfig)).EndInit(); this.pnlBottom.ResumeLayout(false); this.pnlHelp.ResumeLayout(false); this.pnlHelp.PerformLayout(); this.ResumeLayout(false); } } }