namespace APS7100TestTool.Forms { partial class MainForm { private System.ComponentModel.IContainer components = null; // Menu private System.Windows.Forms.MenuStrip menuStrip; private System.Windows.Forms.ToolStripMenuItem menuDevice; private System.Windows.Forms.ToolStripMenuItem menuConnectAPS7100; private System.Windows.Forms.ToolStripMenuItem menuConnectPSW250; private System.Windows.Forms.ToolStripSeparator menuSep1; private System.Windows.Forms.ToolStripMenuItem menuSettings; private System.Windows.Forms.ToolStripSeparator menuSep2; private System.Windows.Forms.ToolStripMenuItem menuExit; private System.Windows.Forms.ToolStripMenuItem menuTest; private System.Windows.Forms.ToolStripMenuItem menuManualTestAPS7100; private System.Windows.Forms.ToolStripMenuItem menuManualTestPSW250; private System.Windows.Forms.ToolStripMenuItem menuModbus; private System.Windows.Forms.ToolStripMenuItem menuModbusConfig; private System.Windows.Forms.ToolStripMenuItem menuModbusStart; private System.Windows.Forms.ToolStripMenuItem menuModbusSimulation; private System.Windows.Forms.ToolStripMenuItem menuModbusRegisterViewer; // APS7100 Status Panel private System.Windows.Forms.GroupBox grpAPS7100Status; private System.Windows.Forms.Label lblAPS7100Title; private System.Windows.Forms.Panel pnlAPS7100Indicator; private System.Windows.Forms.Label lblAPS7100ConnStatus; private System.Windows.Forms.Label lblAPS7100ConnInfo; private System.Windows.Forms.Label lblAPS7100IDN; private System.Windows.Forms.Label lblAPS7100OutputLabel; private System.Windows.Forms.Label lblAPS7100OutputStatus; private System.Windows.Forms.Label lblAPS7100VoltageLabel; private System.Windows.Forms.Label lblAPS7100VoltageValue; private System.Windows.Forms.Label lblAPS7100CurrentLabel; private System.Windows.Forms.Label lblAPS7100CurrentValue; private System.Windows.Forms.Label lblAPS7100PowerLabel; private System.Windows.Forms.Label lblAPS7100PowerValue; private System.Windows.Forms.Label lblAPS7100FreqLabel; private System.Windows.Forms.Label lblAPS7100FreqValue; private System.Windows.Forms.Label lblAPS7100PFLabel; private System.Windows.Forms.Label lblAPS7100PFValue; private System.Windows.Forms.Button btnConnectAPS7100; // PSW250 Status Panel private System.Windows.Forms.GroupBox grpPSW250Status; private System.Windows.Forms.Label lblPSW250Title; private System.Windows.Forms.Panel pnlPSW250Indicator; private System.Windows.Forms.Label lblPSW250ConnStatus; private System.Windows.Forms.Label lblPSW250ConnInfo; private System.Windows.Forms.Label lblPSW250IDN; private System.Windows.Forms.Label lblPSW250OutputLabel; private System.Windows.Forms.Label lblPSW250OutputStatus; private System.Windows.Forms.Label lblPSW250ModeLabel; private System.Windows.Forms.Label lblPSW250ModeValue; private System.Windows.Forms.Label lblPSW250VoltageLabel; private System.Windows.Forms.Label lblPSW250VoltageValue; private System.Windows.Forms.Label lblPSW250CurrentLabel; private System.Windows.Forms.Label lblPSW250CurrentValue; private System.Windows.Forms.Label lblPSW250PowerLabel; private System.Windows.Forms.Label lblPSW250PowerValue; private System.Windows.Forms.Button btnConnectPSW250; // Modbus Status Panel private System.Windows.Forms.GroupBox grpModbusStatus; private System.Windows.Forms.Label lblModbusStatusText; private System.Windows.Forms.Label lblModbusPort; private System.Windows.Forms.Label lblModbusConfigCount; private System.Windows.Forms.Label lblModbusClientCount; private System.Windows.Forms.Label lblModbusRequestCount; private System.Windows.Forms.Label lblModbusLastRequest; private System.Windows.Forms.Label lblModbusHeartbeat; private System.Windows.Forms.Label lblModbusDeviceStatus; // Log Panel private System.Windows.Forms.GroupBox grpLog; private System.Windows.Forms.TextBox txtLog; private System.Windows.Forms.Button btnClearLog; // System Tray private System.Windows.Forms.NotifyIcon notifyIcon; private System.Windows.Forms.ContextMenuStrip trayContextMenu; private System.Windows.Forms.ToolStripMenuItem trayMenuShow; private System.Windows.Forms.ToolStripMenuItem trayMenuAPS7100; private System.Windows.Forms.ToolStripMenuItem trayMenuPSW250; private System.Windows.Forms.ToolStripSeparator trayMenuSep1; private System.Windows.Forms.ToolStripMenuItem trayMenuExit; protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } private void InitializeComponent() { // Menu this.menuStrip = new System.Windows.Forms.MenuStrip(); this.menuDevice = new System.Windows.Forms.ToolStripMenuItem(); this.menuConnectAPS7100 = new System.Windows.Forms.ToolStripMenuItem(); this.menuConnectPSW250 = new System.Windows.Forms.ToolStripMenuItem(); this.menuSep1 = new System.Windows.Forms.ToolStripSeparator(); this.menuSettings = new System.Windows.Forms.ToolStripMenuItem(); this.menuSep2 = new System.Windows.Forms.ToolStripSeparator(); this.menuExit = new System.Windows.Forms.ToolStripMenuItem(); this.menuTest = new System.Windows.Forms.ToolStripMenuItem(); this.menuManualTestAPS7100 = new System.Windows.Forms.ToolStripMenuItem(); this.menuManualTestPSW250 = new System.Windows.Forms.ToolStripMenuItem(); this.menuModbus = new System.Windows.Forms.ToolStripMenuItem(); this.menuModbusConfig = new System.Windows.Forms.ToolStripMenuItem(); this.menuModbusStart = new System.Windows.Forms.ToolStripMenuItem(); this.menuModbusSimulation = new System.Windows.Forms.ToolStripMenuItem(); this.menuModbusRegisterViewer = new System.Windows.Forms.ToolStripMenuItem(); // APS7100 Panel this.grpAPS7100Status = new System.Windows.Forms.GroupBox(); this.lblAPS7100Title = new System.Windows.Forms.Label(); this.pnlAPS7100Indicator = new System.Windows.Forms.Panel(); this.lblAPS7100ConnStatus = new System.Windows.Forms.Label(); this.lblAPS7100ConnInfo = new System.Windows.Forms.Label(); this.lblAPS7100IDN = new System.Windows.Forms.Label(); this.lblAPS7100OutputLabel = new System.Windows.Forms.Label(); this.lblAPS7100OutputStatus = new System.Windows.Forms.Label(); this.lblAPS7100VoltageLabel = new System.Windows.Forms.Label(); this.lblAPS7100VoltageValue = new System.Windows.Forms.Label(); this.lblAPS7100CurrentLabel = new System.Windows.Forms.Label(); this.lblAPS7100CurrentValue = new System.Windows.Forms.Label(); this.lblAPS7100PowerLabel = new System.Windows.Forms.Label(); this.lblAPS7100PowerValue = new System.Windows.Forms.Label(); this.lblAPS7100FreqLabel = new System.Windows.Forms.Label(); this.lblAPS7100FreqValue = new System.Windows.Forms.Label(); this.lblAPS7100PFLabel = new System.Windows.Forms.Label(); this.lblAPS7100PFValue = new System.Windows.Forms.Label(); this.btnConnectAPS7100 = new System.Windows.Forms.Button(); // PSW250 Panel this.grpPSW250Status = new System.Windows.Forms.GroupBox(); this.lblPSW250Title = new System.Windows.Forms.Label(); this.pnlPSW250Indicator = new System.Windows.Forms.Panel(); this.lblPSW250ConnStatus = new System.Windows.Forms.Label(); this.lblPSW250ConnInfo = new System.Windows.Forms.Label(); this.lblPSW250IDN = new System.Windows.Forms.Label(); this.lblPSW250OutputLabel = new System.Windows.Forms.Label(); this.lblPSW250OutputStatus = new System.Windows.Forms.Label(); this.lblPSW250ModeLabel = new System.Windows.Forms.Label(); this.lblPSW250ModeValue = new System.Windows.Forms.Label(); this.lblPSW250VoltageLabel = new System.Windows.Forms.Label(); this.lblPSW250VoltageValue = new System.Windows.Forms.Label(); this.lblPSW250CurrentLabel = new System.Windows.Forms.Label(); this.lblPSW250CurrentValue = new System.Windows.Forms.Label(); this.lblPSW250PowerLabel = new System.Windows.Forms.Label(); this.lblPSW250PowerValue = new System.Windows.Forms.Label(); this.btnConnectPSW250 = new System.Windows.Forms.Button(); // Modbus Panel this.grpModbusStatus = new System.Windows.Forms.GroupBox(); this.lblModbusStatusText = new System.Windows.Forms.Label(); this.lblModbusPort = new System.Windows.Forms.Label(); this.lblModbusConfigCount = new System.Windows.Forms.Label(); this.lblModbusClientCount = new System.Windows.Forms.Label(); this.lblModbusRequestCount = new System.Windows.Forms.Label(); this.lblModbusLastRequest = new System.Windows.Forms.Label(); this.lblModbusHeartbeat = new System.Windows.Forms.Label(); this.lblModbusDeviceStatus = new System.Windows.Forms.Label(); // Log this.grpLog = new System.Windows.Forms.GroupBox(); this.txtLog = new System.Windows.Forms.TextBox(); this.btnClearLog = new System.Windows.Forms.Button(); this.menuStrip.SuspendLayout(); this.grpAPS7100Status.SuspendLayout(); this.grpPSW250Status.SuspendLayout(); this.grpModbusStatus.SuspendLayout(); this.grpLog.SuspendLayout(); this.SuspendLayout(); // // menuStrip // this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuDevice, this.menuTest, this.menuModbus }); this.menuStrip.Location = new System.Drawing.Point(0, 0); this.menuStrip.Name = "menuStrip"; this.menuStrip.Size = new System.Drawing.Size(750, 24); // menuDevice this.menuDevice.Name = "menuDevice"; this.menuDevice.Text = "设备(&D)"; this.menuDevice.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuConnectAPS7100, this.menuConnectPSW250, this.menuSep1, this.menuSettings, this.menuSep2, this.menuExit }); // menuConnectAPS7100 this.menuConnectAPS7100.Name = "menuConnectAPS7100"; this.menuConnectAPS7100.Text = "连接 APS-7100..."; this.menuConnectAPS7100.Click += new System.EventHandler(this.menuConnectAPS7100_Click); // menuConnectPSW250 this.menuConnectPSW250.Name = "menuConnectPSW250"; this.menuConnectPSW250.Text = "连接 PSW-250..."; this.menuConnectPSW250.Click += new System.EventHandler(this.menuConnectPSW250_Click); // menuSettings this.menuSettings.Name = "menuSettings"; this.menuSettings.Text = "连接设置(&S)..."; this.menuSettings.Click += new System.EventHandler(this.menuSettings_Click); // menuExit this.menuExit.Name = "menuExit"; this.menuExit.Text = "退出(&X)"; this.menuExit.Click += new System.EventHandler(this.menuExit_Click); // menuTest this.menuTest.Name = "menuTest"; this.menuTest.Text = "手动测试(&T)"; this.menuTest.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuManualTestAPS7100, this.menuManualTestPSW250 }); // menuManualTestAPS7100 this.menuManualTestAPS7100.Name = "menuManualTestAPS7100"; this.menuManualTestAPS7100.Text = "APS-7100 测试面板..."; this.menuManualTestAPS7100.Click += new System.EventHandler(this.menuManualTestAPS7100_Click); // menuManualTestPSW250 this.menuManualTestPSW250.Name = "menuManualTestPSW250"; this.menuManualTestPSW250.Text = "PSW-250 测试面板..."; this.menuManualTestPSW250.Click += new System.EventHandler(this.menuManualTestPSW250_Click); // menuModbus this.menuModbus.Name = "menuModbus"; this.menuModbus.Text = "Modbus(&M)"; this.menuModbus.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuModbusConfig, this.menuModbusStart, this.menuModbusRegisterViewer, new System.Windows.Forms.ToolStripSeparator(), this.menuModbusSimulation }); // menuModbusConfig this.menuModbusConfig.Name = "menuModbusConfig"; this.menuModbusConfig.Text = "配置映射表..."; this.menuModbusConfig.Click += new System.EventHandler(this.menuModbusConfig_Click); // menuModbusStart this.menuModbusStart.Name = "menuModbusStart"; this.menuModbusStart.Text = "启动服务"; this.menuModbusStart.Click += new System.EventHandler(this.menuModbusStart_Click); // menuModbusRegisterViewer this.menuModbusRegisterViewer.Name = "menuModbusRegisterViewer"; this.menuModbusRegisterViewer.Text = "查看寄存器(&R)..."; this.menuModbusRegisterViewer.Click += new System.EventHandler(this.menuModbusRegisterViewer_Click); // menuModbusSimulation this.menuModbusSimulation.Name = "menuModbusSimulation"; this.menuModbusSimulation.Text = "仿真模式"; this.menuModbusSimulation.CheckOnClick = true; this.menuModbusSimulation.Click += new System.EventHandler(this.menuModbusSimulation_Click); // // grpAPS7100Status // this.grpAPS7100Status.Controls.Add(this.lblAPS7100Title); this.grpAPS7100Status.Controls.Add(this.pnlAPS7100Indicator); this.grpAPS7100Status.Controls.Add(this.lblAPS7100ConnStatus); this.grpAPS7100Status.Controls.Add(this.lblAPS7100ConnInfo); this.grpAPS7100Status.Controls.Add(this.lblAPS7100IDN); this.grpAPS7100Status.Controls.Add(this.lblAPS7100OutputLabel); this.grpAPS7100Status.Controls.Add(this.lblAPS7100OutputStatus); this.grpAPS7100Status.Controls.Add(this.lblAPS7100VoltageLabel); this.grpAPS7100Status.Controls.Add(this.lblAPS7100VoltageValue); this.grpAPS7100Status.Controls.Add(this.lblAPS7100CurrentLabel); this.grpAPS7100Status.Controls.Add(this.lblAPS7100CurrentValue); this.grpAPS7100Status.Controls.Add(this.lblAPS7100PowerLabel); this.grpAPS7100Status.Controls.Add(this.lblAPS7100PowerValue); this.grpAPS7100Status.Controls.Add(this.lblAPS7100FreqLabel); this.grpAPS7100Status.Controls.Add(this.lblAPS7100FreqValue); this.grpAPS7100Status.Controls.Add(this.lblAPS7100PFLabel); this.grpAPS7100Status.Controls.Add(this.lblAPS7100PFValue); this.grpAPS7100Status.Controls.Add(this.btnConnectAPS7100); this.grpAPS7100Status.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold); this.grpAPS7100Status.ForeColor = System.Drawing.Color.FromArgb(0, 100, 180); this.grpAPS7100Status.Location = new System.Drawing.Point(12, 35); this.grpAPS7100Status.Name = "grpAPS7100Status"; this.grpAPS7100Status.Size = new System.Drawing.Size(472, 280); this.grpAPS7100Status.Text = "APS-7100 (AC 可编程电源)"; // lblAPS7100Title (hidden, used for groupbox title) this.lblAPS7100Title.Visible = false; // pnlAPS7100Indicator this.pnlAPS7100Indicator.BackColor = System.Drawing.Color.Gray; this.pnlAPS7100Indicator.Location = new System.Drawing.Point(15, 30); this.pnlAPS7100Indicator.Size = new System.Drawing.Size(20, 20); // lblAPS7100ConnStatus this.lblAPS7100ConnStatus.AutoSize = true; this.lblAPS7100ConnStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold); this.lblAPS7100ConnStatus.ForeColor = System.Drawing.Color.Gray; this.lblAPS7100ConnStatus.Location = new System.Drawing.Point(45, 30); this.lblAPS7100ConnStatus.Text = "未连接"; // lblAPS7100ConnInfo this.lblAPS7100ConnInfo.AutoSize = true; this.lblAPS7100ConnInfo.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblAPS7100ConnInfo.ForeColor = System.Drawing.Color.DimGray; this.lblAPS7100ConnInfo.Location = new System.Drawing.Point(15, 55); this.lblAPS7100ConnInfo.Text = "连接信息: --"; // lblAPS7100IDN this.lblAPS7100IDN.AutoSize = true; this.lblAPS7100IDN.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F); this.lblAPS7100IDN.ForeColor = System.Drawing.Color.DimGray; this.lblAPS7100IDN.Location = new System.Drawing.Point(15, 75); this.lblAPS7100IDN.Text = "设备: --"; // lblAPS7100OutputLabel this.lblAPS7100OutputLabel.AutoSize = true; this.lblAPS7100OutputLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblAPS7100OutputLabel.ForeColor = System.Drawing.Color.Black; this.lblAPS7100OutputLabel.Location = new System.Drawing.Point(15, 105); this.lblAPS7100OutputLabel.Text = "输出状态:"; // lblAPS7100OutputStatus this.lblAPS7100OutputStatus.AutoSize = true; this.lblAPS7100OutputStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold); this.lblAPS7100OutputStatus.ForeColor = System.Drawing.Color.Gray; this.lblAPS7100OutputStatus.Location = new System.Drawing.Point(85, 104); this.lblAPS7100OutputStatus.Text = "OFF"; // Measurement Labels this.lblAPS7100VoltageLabel.AutoSize = true; this.lblAPS7100VoltageLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblAPS7100VoltageLabel.ForeColor = System.Drawing.Color.Black; this.lblAPS7100VoltageLabel.Location = new System.Drawing.Point(15, 135); this.lblAPS7100VoltageLabel.Text = "电压:"; this.lblAPS7100VoltageValue.AutoSize = true; this.lblAPS7100VoltageValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold); this.lblAPS7100VoltageValue.ForeColor = System.Drawing.Color.FromArgb(0, 100, 180); this.lblAPS7100VoltageValue.Location = new System.Drawing.Point(60, 132); this.lblAPS7100VoltageValue.Text = "--- V"; this.lblAPS7100CurrentLabel.AutoSize = true; this.lblAPS7100CurrentLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblAPS7100CurrentLabel.ForeColor = System.Drawing.Color.Black; this.lblAPS7100CurrentLabel.Location = new System.Drawing.Point(170, 135); this.lblAPS7100CurrentLabel.Text = "电流:"; this.lblAPS7100CurrentValue.AutoSize = true; this.lblAPS7100CurrentValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold); this.lblAPS7100CurrentValue.ForeColor = System.Drawing.Color.FromArgb(0, 100, 180); this.lblAPS7100CurrentValue.Location = new System.Drawing.Point(215, 132); this.lblAPS7100CurrentValue.Text = "--- A"; this.lblAPS7100PowerLabel.AutoSize = true; this.lblAPS7100PowerLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblAPS7100PowerLabel.ForeColor = System.Drawing.Color.Black; this.lblAPS7100PowerLabel.Location = new System.Drawing.Point(15, 165); this.lblAPS7100PowerLabel.Text = "功率:"; this.lblAPS7100PowerValue.AutoSize = true; this.lblAPS7100PowerValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold); this.lblAPS7100PowerValue.ForeColor = System.Drawing.Color.FromArgb(0, 100, 180); this.lblAPS7100PowerValue.Location = new System.Drawing.Point(60, 162); this.lblAPS7100PowerValue.Text = "--- W"; this.lblAPS7100FreqLabel.AutoSize = true; this.lblAPS7100FreqLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblAPS7100FreqLabel.ForeColor = System.Drawing.Color.Black; this.lblAPS7100FreqLabel.Location = new System.Drawing.Point(170, 165); this.lblAPS7100FreqLabel.Text = "频率:"; this.lblAPS7100FreqValue.AutoSize = true; this.lblAPS7100FreqValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold); this.lblAPS7100FreqValue.ForeColor = System.Drawing.Color.FromArgb(0, 100, 180); this.lblAPS7100FreqValue.Location = new System.Drawing.Point(215, 162); this.lblAPS7100FreqValue.Text = "--- Hz"; this.lblAPS7100PFLabel.AutoSize = true; this.lblAPS7100PFLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblAPS7100PFLabel.ForeColor = System.Drawing.Color.Black; this.lblAPS7100PFLabel.Location = new System.Drawing.Point(15, 195); this.lblAPS7100PFLabel.Text = "功率因数:"; this.lblAPS7100PFValue.AutoSize = true; this.lblAPS7100PFValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold); this.lblAPS7100PFValue.ForeColor = System.Drawing.Color.FromArgb(0, 100, 180); this.lblAPS7100PFValue.Location = new System.Drawing.Point(90, 192); this.lblAPS7100PFValue.Text = "---"; // btnConnectAPS7100 this.btnConnectAPS7100.BackColor = System.Drawing.Color.LightGreen; this.btnConnectAPS7100.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold); this.btnConnectAPS7100.ForeColor = System.Drawing.Color.Black; this.btnConnectAPS7100.Location = new System.Drawing.Point(15, 230); this.btnConnectAPS7100.Size = new System.Drawing.Size(442, 38); this.btnConnectAPS7100.Text = "连 接"; this.btnConnectAPS7100.UseVisualStyleBackColor = false; this.btnConnectAPS7100.Click += new System.EventHandler(this.btnConnectAPS7100_Click); // // grpPSW250Status // this.grpPSW250Status.Controls.Add(this.lblPSW250Title); this.grpPSW250Status.Controls.Add(this.pnlPSW250Indicator); this.grpPSW250Status.Controls.Add(this.lblPSW250ConnStatus); this.grpPSW250Status.Controls.Add(this.lblPSW250ConnInfo); this.grpPSW250Status.Controls.Add(this.lblPSW250IDN); this.grpPSW250Status.Controls.Add(this.lblPSW250OutputLabel); this.grpPSW250Status.Controls.Add(this.lblPSW250OutputStatus); this.grpPSW250Status.Controls.Add(this.lblPSW250ModeLabel); this.grpPSW250Status.Controls.Add(this.lblPSW250ModeValue); this.grpPSW250Status.Controls.Add(this.lblPSW250VoltageLabel); this.grpPSW250Status.Controls.Add(this.lblPSW250VoltageValue); this.grpPSW250Status.Controls.Add(this.lblPSW250CurrentLabel); this.grpPSW250Status.Controls.Add(this.lblPSW250CurrentValue); this.grpPSW250Status.Controls.Add(this.lblPSW250PowerLabel); this.grpPSW250Status.Controls.Add(this.lblPSW250PowerValue); this.grpPSW250Status.Controls.Add(this.btnConnectPSW250); this.grpPSW250Status.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold); this.grpPSW250Status.ForeColor = System.Drawing.Color.FromArgb(0, 130, 60); this.grpPSW250Status.Location = new System.Drawing.Point(496, 35); this.grpPSW250Status.Name = "grpPSW250Status"; this.grpPSW250Status.Size = new System.Drawing.Size(472, 280); this.grpPSW250Status.Text = "PSW-250 (DC 可编程电源)"; // lblPSW250Title (hidden) this.lblPSW250Title.Visible = false; // pnlPSW250Indicator this.pnlPSW250Indicator.BackColor = System.Drawing.Color.Gray; this.pnlPSW250Indicator.Location = new System.Drawing.Point(15, 30); this.pnlPSW250Indicator.Size = new System.Drawing.Size(20, 20); // lblPSW250ConnStatus this.lblPSW250ConnStatus.AutoSize = true; this.lblPSW250ConnStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold); this.lblPSW250ConnStatus.ForeColor = System.Drawing.Color.Gray; this.lblPSW250ConnStatus.Location = new System.Drawing.Point(45, 30); this.lblPSW250ConnStatus.Text = "未连接"; // lblPSW250ConnInfo this.lblPSW250ConnInfo.AutoSize = true; this.lblPSW250ConnInfo.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblPSW250ConnInfo.ForeColor = System.Drawing.Color.DimGray; this.lblPSW250ConnInfo.Location = new System.Drawing.Point(15, 55); this.lblPSW250ConnInfo.Text = "连接信息: --"; // lblPSW250IDN this.lblPSW250IDN.AutoSize = true; this.lblPSW250IDN.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F); this.lblPSW250IDN.ForeColor = System.Drawing.Color.DimGray; this.lblPSW250IDN.Location = new System.Drawing.Point(15, 75); this.lblPSW250IDN.Text = "设备: --"; // lblPSW250OutputLabel this.lblPSW250OutputLabel.AutoSize = true; this.lblPSW250OutputLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblPSW250OutputLabel.ForeColor = System.Drawing.Color.Black; this.lblPSW250OutputLabel.Location = new System.Drawing.Point(15, 105); this.lblPSW250OutputLabel.Text = "输出状态:"; // lblPSW250OutputStatus this.lblPSW250OutputStatus.AutoSize = true; this.lblPSW250OutputStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold); this.lblPSW250OutputStatus.ForeColor = System.Drawing.Color.Gray; this.lblPSW250OutputStatus.Location = new System.Drawing.Point(85, 104); this.lblPSW250OutputStatus.Text = "OFF"; // lblPSW250ModeLabel this.lblPSW250ModeLabel.AutoSize = true; this.lblPSW250ModeLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblPSW250ModeLabel.ForeColor = System.Drawing.Color.Black; this.lblPSW250ModeLabel.Location = new System.Drawing.Point(150, 105); this.lblPSW250ModeLabel.Text = "模式:"; // lblPSW250ModeValue this.lblPSW250ModeValue.AutoSize = true; this.lblPSW250ModeValue.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold); this.lblPSW250ModeValue.ForeColor = System.Drawing.Color.DarkOrange; this.lblPSW250ModeValue.Location = new System.Drawing.Point(190, 104); this.lblPSW250ModeValue.Text = "--"; // PSW250 Measurements this.lblPSW250VoltageLabel.AutoSize = true; this.lblPSW250VoltageLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblPSW250VoltageLabel.ForeColor = System.Drawing.Color.Black; this.lblPSW250VoltageLabel.Location = new System.Drawing.Point(15, 135); this.lblPSW250VoltageLabel.Text = "电压:"; this.lblPSW250VoltageValue.AutoSize = true; this.lblPSW250VoltageValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold); this.lblPSW250VoltageValue.ForeColor = System.Drawing.Color.FromArgb(0, 130, 60); this.lblPSW250VoltageValue.Location = new System.Drawing.Point(60, 132); this.lblPSW250VoltageValue.Text = "--- V"; this.lblPSW250CurrentLabel.AutoSize = true; this.lblPSW250CurrentLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblPSW250CurrentLabel.ForeColor = System.Drawing.Color.Black; this.lblPSW250CurrentLabel.Location = new System.Drawing.Point(170, 135); this.lblPSW250CurrentLabel.Text = "电流:"; this.lblPSW250CurrentValue.AutoSize = true; this.lblPSW250CurrentValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold); this.lblPSW250CurrentValue.ForeColor = System.Drawing.Color.FromArgb(0, 130, 60); this.lblPSW250CurrentValue.Location = new System.Drawing.Point(215, 132); this.lblPSW250CurrentValue.Text = "--- A"; this.lblPSW250PowerLabel.AutoSize = true; this.lblPSW250PowerLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblPSW250PowerLabel.ForeColor = System.Drawing.Color.Black; this.lblPSW250PowerLabel.Location = new System.Drawing.Point(15, 165); this.lblPSW250PowerLabel.Text = "功率:"; this.lblPSW250PowerValue.AutoSize = true; this.lblPSW250PowerValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold); this.lblPSW250PowerValue.ForeColor = System.Drawing.Color.FromArgb(0, 130, 60); this.lblPSW250PowerValue.Location = new System.Drawing.Point(60, 162); this.lblPSW250PowerValue.Text = "--- W"; // btnConnectPSW250 this.btnConnectPSW250.BackColor = System.Drawing.Color.LightGreen; this.btnConnectPSW250.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold); this.btnConnectPSW250.ForeColor = System.Drawing.Color.Black; this.btnConnectPSW250.Location = new System.Drawing.Point(15, 230); this.btnConnectPSW250.Size = new System.Drawing.Size(442, 38); this.btnConnectPSW250.Text = "连 接"; this.btnConnectPSW250.UseVisualStyleBackColor = false; this.btnConnectPSW250.Click += new System.EventHandler(this.btnConnectPSW250_Click); // // grpModbusStatus // this.grpModbusStatus.Controls.Add(this.lblModbusStatusText); this.grpModbusStatus.Controls.Add(this.lblModbusPort); this.grpModbusStatus.Controls.Add(this.lblModbusConfigCount); this.grpModbusStatus.Controls.Add(this.lblModbusClientCount); this.grpModbusStatus.Controls.Add(this.lblModbusRequestCount); this.grpModbusStatus.Controls.Add(this.lblModbusLastRequest); this.grpModbusStatus.Controls.Add(this.lblModbusHeartbeat); this.grpModbusStatus.Controls.Add(this.lblModbusDeviceStatus); this.grpModbusStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold); this.grpModbusStatus.ForeColor = System.Drawing.Color.FromArgb(128, 0, 128); this.grpModbusStatus.Location = new System.Drawing.Point(12, 325); this.grpModbusStatus.Size = new System.Drawing.Size(960, 60); this.grpModbusStatus.Text = "Modbus TCP 服务器"; // lblModbusStatusText this.lblModbusStatusText.AutoSize = true; this.lblModbusStatusText.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold); this.lblModbusStatusText.ForeColor = System.Drawing.Color.Gray; this.lblModbusStatusText.Location = new System.Drawing.Point(15, 28); this.lblModbusStatusText.Text = "● 未启动"; // lblModbusPort this.lblModbusPort.AutoSize = true; this.lblModbusPort.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblModbusPort.ForeColor = System.Drawing.Color.Black; this.lblModbusPort.Location = new System.Drawing.Point(120, 30); this.lblModbusPort.Text = "端口: 502"; // lblModbusConfigCount this.lblModbusConfigCount.AutoSize = true; this.lblModbusConfigCount.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblModbusConfigCount.ForeColor = System.Drawing.Color.Black; this.lblModbusConfigCount.Location = new System.Drawing.Point(210, 30); this.lblModbusConfigCount.Text = "规则: 0 条"; // lblModbusClientCount this.lblModbusClientCount.AutoSize = true; this.lblModbusClientCount.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold); this.lblModbusClientCount.ForeColor = System.Drawing.Color.FromArgb(0, 128, 0); this.lblModbusClientCount.Location = new System.Drawing.Point(310, 30); this.lblModbusClientCount.Text = "客户端: 0"; // lblModbusRequestCount this.lblModbusRequestCount.AutoSize = true; this.lblModbusRequestCount.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblModbusRequestCount.ForeColor = System.Drawing.Color.Black; this.lblModbusRequestCount.Location = new System.Drawing.Point(410, 30); this.lblModbusRequestCount.Text = "请求: 0"; // lblModbusLastRequest this.lblModbusLastRequest.AutoSize = true; this.lblModbusLastRequest.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblModbusLastRequest.ForeColor = System.Drawing.Color.DimGray; this.lblModbusLastRequest.Location = new System.Drawing.Point(500, 30); this.lblModbusLastRequest.Text = "最后通讯: --"; // lblModbusHeartbeat this.lblModbusHeartbeat.AutoSize = true; this.lblModbusHeartbeat.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblModbusHeartbeat.ForeColor = System.Drawing.Color.DarkOrange; this.lblModbusHeartbeat.Location = new System.Drawing.Point(620, 30); this.lblModbusHeartbeat.Text = "心跳: --"; // lblModbusDeviceStatus this.lblModbusDeviceStatus.AutoSize = true; this.lblModbusDeviceStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); this.lblModbusDeviceStatus.ForeColor = System.Drawing.Color.DarkCyan; this.lblModbusDeviceStatus.Location = new System.Drawing.Point(760, 30); this.lblModbusDeviceStatus.Text = "设备: --"; // // grpLog // this.grpLog.Controls.Add(this.txtLog); this.grpLog.Controls.Add(this.btnClearLog); this.grpLog.Location = new System.Drawing.Point(12, 395); this.grpLog.Size = new System.Drawing.Size(953, 155); this.grpLog.Text = "操作日志"; // txtLog this.txtLog.Font = new System.Drawing.Font("Consolas", 9F); this.txtLog.Location = new System.Drawing.Point(10, 22); this.txtLog.Multiline = true; this.txtLog.ReadOnly = true; this.txtLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.txtLog.Size = new System.Drawing.Size(930, 95); // btnClearLog this.btnClearLog.Location = new System.Drawing.Point(10, 122); this.btnClearLog.Size = new System.Drawing.Size(700, 25); this.btnClearLog.Text = "清空日志"; this.btnClearLog.Click += new System.EventHandler(this.btnClearLog_Click); // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(980, 560); this.Controls.Add(this.menuStrip); this.Controls.Add(this.grpAPS7100Status); this.Controls.Add(this.grpPSW250Status); this.Controls.Add(this.grpModbusStatus); this.Controls.Add(this.grpLog); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MainMenuStrip = this.menuStrip; this.MaximizeBox = false; this.Name = "MainForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "固纬电源测试工具 v4.0"; this.menuStrip.ResumeLayout(false); this.menuStrip.PerformLayout(); this.grpAPS7100Status.ResumeLayout(false); this.grpAPS7100Status.PerformLayout(); this.grpPSW250Status.ResumeLayout(false); this.grpPSW250Status.PerformLayout(); this.grpModbusStatus.ResumeLayout(false); this.grpModbusStatus.PerformLayout(); this.grpLog.ResumeLayout(false); this.grpLog.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); } } }