MainForm.Designer.cs 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  1. namespace APS7100TestTool.Forms
  2. {
  3. partial class MainForm
  4. {
  5. private System.ComponentModel.IContainer components = null;
  6. // Menu
  7. private System.Windows.Forms.MenuStrip menuStrip;
  8. private System.Windows.Forms.ToolStripMenuItem menuDevice;
  9. private System.Windows.Forms.ToolStripMenuItem menuConnectAPS7100;
  10. private System.Windows.Forms.ToolStripMenuItem menuConnectPSW250;
  11. private System.Windows.Forms.ToolStripSeparator menuSep1;
  12. private System.Windows.Forms.ToolStripMenuItem menuSettings;
  13. private System.Windows.Forms.ToolStripSeparator menuSep2;
  14. private System.Windows.Forms.ToolStripMenuItem menuExit;
  15. private System.Windows.Forms.ToolStripMenuItem menuTest;
  16. private System.Windows.Forms.ToolStripMenuItem menuManualTestAPS7100;
  17. private System.Windows.Forms.ToolStripMenuItem menuManualTestPSW250;
  18. private System.Windows.Forms.ToolStripMenuItem menuModbus;
  19. private System.Windows.Forms.ToolStripMenuItem menuModbusConfig;
  20. private System.Windows.Forms.ToolStripMenuItem menuModbusStart;
  21. private System.Windows.Forms.ToolStripMenuItem menuModbusSimulation;
  22. private System.Windows.Forms.ToolStripMenuItem menuModbusRegisterViewer;
  23. // APS7100 Status Panel
  24. private System.Windows.Forms.GroupBox grpAPS7100Status;
  25. private System.Windows.Forms.Label lblAPS7100Title;
  26. private System.Windows.Forms.Panel pnlAPS7100Indicator;
  27. private System.Windows.Forms.Label lblAPS7100ConnStatus;
  28. private System.Windows.Forms.Label lblAPS7100ConnInfo;
  29. private System.Windows.Forms.Label lblAPS7100IDN;
  30. private System.Windows.Forms.Label lblAPS7100OutputLabel;
  31. private System.Windows.Forms.Label lblAPS7100OutputStatus;
  32. private System.Windows.Forms.Label lblAPS7100VoltageLabel;
  33. private System.Windows.Forms.Label lblAPS7100VoltageValue;
  34. private System.Windows.Forms.Label lblAPS7100CurrentLabel;
  35. private System.Windows.Forms.Label lblAPS7100CurrentValue;
  36. private System.Windows.Forms.Label lblAPS7100PowerLabel;
  37. private System.Windows.Forms.Label lblAPS7100PowerValue;
  38. private System.Windows.Forms.Label lblAPS7100FreqLabel;
  39. private System.Windows.Forms.Label lblAPS7100FreqValue;
  40. private System.Windows.Forms.Label lblAPS7100PFLabel;
  41. private System.Windows.Forms.Label lblAPS7100PFValue;
  42. private System.Windows.Forms.Button btnConnectAPS7100;
  43. // PSW250 Status Panel
  44. private System.Windows.Forms.GroupBox grpPSW250Status;
  45. private System.Windows.Forms.Label lblPSW250Title;
  46. private System.Windows.Forms.Panel pnlPSW250Indicator;
  47. private System.Windows.Forms.Label lblPSW250ConnStatus;
  48. private System.Windows.Forms.Label lblPSW250ConnInfo;
  49. private System.Windows.Forms.Label lblPSW250IDN;
  50. private System.Windows.Forms.Label lblPSW250OutputLabel;
  51. private System.Windows.Forms.Label lblPSW250OutputStatus;
  52. private System.Windows.Forms.Label lblPSW250ModeLabel;
  53. private System.Windows.Forms.Label lblPSW250ModeValue;
  54. private System.Windows.Forms.Label lblPSW250VoltageLabel;
  55. private System.Windows.Forms.Label lblPSW250VoltageValue;
  56. private System.Windows.Forms.Label lblPSW250CurrentLabel;
  57. private System.Windows.Forms.Label lblPSW250CurrentValue;
  58. private System.Windows.Forms.Label lblPSW250PowerLabel;
  59. private System.Windows.Forms.Label lblPSW250PowerValue;
  60. private System.Windows.Forms.Button btnConnectPSW250;
  61. // Modbus Status Panel
  62. private System.Windows.Forms.GroupBox grpModbusStatus;
  63. private System.Windows.Forms.Label lblModbusStatusText;
  64. private System.Windows.Forms.Label lblModbusPort;
  65. private System.Windows.Forms.Label lblModbusConfigCount;
  66. private System.Windows.Forms.Label lblModbusClientCount;
  67. private System.Windows.Forms.Label lblModbusRequestCount;
  68. private System.Windows.Forms.Label lblModbusLastRequest;
  69. private System.Windows.Forms.Label lblModbusHeartbeat;
  70. private System.Windows.Forms.Label lblModbusDeviceStatus;
  71. // Log Panel
  72. private System.Windows.Forms.GroupBox grpLog;
  73. private System.Windows.Forms.TextBox txtLog;
  74. private System.Windows.Forms.Button btnClearLog;
  75. // System Tray
  76. private System.Windows.Forms.NotifyIcon notifyIcon;
  77. private System.Windows.Forms.ContextMenuStrip trayContextMenu;
  78. private System.Windows.Forms.ToolStripMenuItem trayMenuShow;
  79. private System.Windows.Forms.ToolStripMenuItem trayMenuAPS7100;
  80. private System.Windows.Forms.ToolStripMenuItem trayMenuPSW250;
  81. private System.Windows.Forms.ToolStripSeparator trayMenuSep1;
  82. private System.Windows.Forms.ToolStripMenuItem trayMenuExit;
  83. protected override void Dispose(bool disposing)
  84. {
  85. if (disposing && (components != null))
  86. {
  87. components.Dispose();
  88. }
  89. base.Dispose(disposing);
  90. }
  91. private void InitializeComponent()
  92. {
  93. // Menu
  94. this.menuStrip = new System.Windows.Forms.MenuStrip();
  95. this.menuDevice = new System.Windows.Forms.ToolStripMenuItem();
  96. this.menuConnectAPS7100 = new System.Windows.Forms.ToolStripMenuItem();
  97. this.menuConnectPSW250 = new System.Windows.Forms.ToolStripMenuItem();
  98. this.menuSep1 = new System.Windows.Forms.ToolStripSeparator();
  99. this.menuSettings = new System.Windows.Forms.ToolStripMenuItem();
  100. this.menuSep2 = new System.Windows.Forms.ToolStripSeparator();
  101. this.menuExit = new System.Windows.Forms.ToolStripMenuItem();
  102. this.menuTest = new System.Windows.Forms.ToolStripMenuItem();
  103. this.menuManualTestAPS7100 = new System.Windows.Forms.ToolStripMenuItem();
  104. this.menuManualTestPSW250 = new System.Windows.Forms.ToolStripMenuItem();
  105. this.menuModbus = new System.Windows.Forms.ToolStripMenuItem();
  106. this.menuModbusConfig = new System.Windows.Forms.ToolStripMenuItem();
  107. this.menuModbusStart = new System.Windows.Forms.ToolStripMenuItem();
  108. this.menuModbusSimulation = new System.Windows.Forms.ToolStripMenuItem();
  109. this.menuModbusRegisterViewer = new System.Windows.Forms.ToolStripMenuItem();
  110. // APS7100 Panel
  111. this.grpAPS7100Status = new System.Windows.Forms.GroupBox();
  112. this.lblAPS7100Title = new System.Windows.Forms.Label();
  113. this.pnlAPS7100Indicator = new System.Windows.Forms.Panel();
  114. this.lblAPS7100ConnStatus = new System.Windows.Forms.Label();
  115. this.lblAPS7100ConnInfo = new System.Windows.Forms.Label();
  116. this.lblAPS7100IDN = new System.Windows.Forms.Label();
  117. this.lblAPS7100OutputLabel = new System.Windows.Forms.Label();
  118. this.lblAPS7100OutputStatus = new System.Windows.Forms.Label();
  119. this.lblAPS7100VoltageLabel = new System.Windows.Forms.Label();
  120. this.lblAPS7100VoltageValue = new System.Windows.Forms.Label();
  121. this.lblAPS7100CurrentLabel = new System.Windows.Forms.Label();
  122. this.lblAPS7100CurrentValue = new System.Windows.Forms.Label();
  123. this.lblAPS7100PowerLabel = new System.Windows.Forms.Label();
  124. this.lblAPS7100PowerValue = new System.Windows.Forms.Label();
  125. this.lblAPS7100FreqLabel = new System.Windows.Forms.Label();
  126. this.lblAPS7100FreqValue = new System.Windows.Forms.Label();
  127. this.lblAPS7100PFLabel = new System.Windows.Forms.Label();
  128. this.lblAPS7100PFValue = new System.Windows.Forms.Label();
  129. this.btnConnectAPS7100 = new System.Windows.Forms.Button();
  130. // PSW250 Panel
  131. this.grpPSW250Status = new System.Windows.Forms.GroupBox();
  132. this.lblPSW250Title = new System.Windows.Forms.Label();
  133. this.pnlPSW250Indicator = new System.Windows.Forms.Panel();
  134. this.lblPSW250ConnStatus = new System.Windows.Forms.Label();
  135. this.lblPSW250ConnInfo = new System.Windows.Forms.Label();
  136. this.lblPSW250IDN = new System.Windows.Forms.Label();
  137. this.lblPSW250OutputLabel = new System.Windows.Forms.Label();
  138. this.lblPSW250OutputStatus = new System.Windows.Forms.Label();
  139. this.lblPSW250ModeLabel = new System.Windows.Forms.Label();
  140. this.lblPSW250ModeValue = new System.Windows.Forms.Label();
  141. this.lblPSW250VoltageLabel = new System.Windows.Forms.Label();
  142. this.lblPSW250VoltageValue = new System.Windows.Forms.Label();
  143. this.lblPSW250CurrentLabel = new System.Windows.Forms.Label();
  144. this.lblPSW250CurrentValue = new System.Windows.Forms.Label();
  145. this.lblPSW250PowerLabel = new System.Windows.Forms.Label();
  146. this.lblPSW250PowerValue = new System.Windows.Forms.Label();
  147. this.btnConnectPSW250 = new System.Windows.Forms.Button();
  148. // Modbus Panel
  149. this.grpModbusStatus = new System.Windows.Forms.GroupBox();
  150. this.lblModbusStatusText = new System.Windows.Forms.Label();
  151. this.lblModbusPort = new System.Windows.Forms.Label();
  152. this.lblModbusConfigCount = new System.Windows.Forms.Label();
  153. this.lblModbusClientCount = new System.Windows.Forms.Label();
  154. this.lblModbusRequestCount = new System.Windows.Forms.Label();
  155. this.lblModbusLastRequest = new System.Windows.Forms.Label();
  156. this.lblModbusHeartbeat = new System.Windows.Forms.Label();
  157. this.lblModbusDeviceStatus = new System.Windows.Forms.Label();
  158. // Log
  159. this.grpLog = new System.Windows.Forms.GroupBox();
  160. this.txtLog = new System.Windows.Forms.TextBox();
  161. this.btnClearLog = new System.Windows.Forms.Button();
  162. this.menuStrip.SuspendLayout();
  163. this.grpAPS7100Status.SuspendLayout();
  164. this.grpPSW250Status.SuspendLayout();
  165. this.grpModbusStatus.SuspendLayout();
  166. this.grpLog.SuspendLayout();
  167. this.SuspendLayout();
  168. //
  169. // menuStrip
  170. //
  171. this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
  172. this.menuDevice, this.menuTest, this.menuModbus
  173. });
  174. this.menuStrip.Location = new System.Drawing.Point(0, 0);
  175. this.menuStrip.Name = "menuStrip";
  176. this.menuStrip.Size = new System.Drawing.Size(750, 24);
  177. // menuDevice
  178. this.menuDevice.Name = "menuDevice";
  179. this.menuDevice.Text = "设备(&D)";
  180. this.menuDevice.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  181. this.menuConnectAPS7100, this.menuConnectPSW250, this.menuSep1,
  182. this.menuSettings, this.menuSep2, this.menuExit
  183. });
  184. // menuConnectAPS7100
  185. this.menuConnectAPS7100.Name = "menuConnectAPS7100";
  186. this.menuConnectAPS7100.Text = "连接 APS-7100...";
  187. this.menuConnectAPS7100.Click += new System.EventHandler(this.menuConnectAPS7100_Click);
  188. // menuConnectPSW250
  189. this.menuConnectPSW250.Name = "menuConnectPSW250";
  190. this.menuConnectPSW250.Text = "连接 PSW-250...";
  191. this.menuConnectPSW250.Click += new System.EventHandler(this.menuConnectPSW250_Click);
  192. // menuSettings
  193. this.menuSettings.Name = "menuSettings";
  194. this.menuSettings.Text = "连接设置(&S)...";
  195. this.menuSettings.Click += new System.EventHandler(this.menuSettings_Click);
  196. // menuExit
  197. this.menuExit.Name = "menuExit";
  198. this.menuExit.Text = "退出(&X)";
  199. this.menuExit.Click += new System.EventHandler(this.menuExit_Click);
  200. // menuTest
  201. this.menuTest.Name = "menuTest";
  202. this.menuTest.Text = "手动测试(&T)";
  203. this.menuTest.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  204. this.menuManualTestAPS7100, this.menuManualTestPSW250
  205. });
  206. // menuManualTestAPS7100
  207. this.menuManualTestAPS7100.Name = "menuManualTestAPS7100";
  208. this.menuManualTestAPS7100.Text = "APS-7100 测试面板...";
  209. this.menuManualTestAPS7100.Click += new System.EventHandler(this.menuManualTestAPS7100_Click);
  210. // menuManualTestPSW250
  211. this.menuManualTestPSW250.Name = "menuManualTestPSW250";
  212. this.menuManualTestPSW250.Text = "PSW-250 测试面板...";
  213. this.menuManualTestPSW250.Click += new System.EventHandler(this.menuManualTestPSW250_Click);
  214. // menuModbus
  215. this.menuModbus.Name = "menuModbus";
  216. this.menuModbus.Text = "Modbus(&M)";
  217. this.menuModbus.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  218. this.menuModbusConfig, this.menuModbusStart, this.menuModbusRegisterViewer,
  219. new System.Windows.Forms.ToolStripSeparator(), this.menuModbusSimulation
  220. });
  221. // menuModbusConfig
  222. this.menuModbusConfig.Name = "menuModbusConfig";
  223. this.menuModbusConfig.Text = "配置映射表...";
  224. this.menuModbusConfig.Click += new System.EventHandler(this.menuModbusConfig_Click);
  225. // menuModbusStart
  226. this.menuModbusStart.Name = "menuModbusStart";
  227. this.menuModbusStart.Text = "启动服务";
  228. this.menuModbusStart.Click += new System.EventHandler(this.menuModbusStart_Click);
  229. // menuModbusRegisterViewer
  230. this.menuModbusRegisterViewer.Name = "menuModbusRegisterViewer";
  231. this.menuModbusRegisterViewer.Text = "查看寄存器(&R)...";
  232. this.menuModbusRegisterViewer.Click += new System.EventHandler(this.menuModbusRegisterViewer_Click);
  233. // menuModbusSimulation
  234. this.menuModbusSimulation.Name = "menuModbusSimulation";
  235. this.menuModbusSimulation.Text = "仿真模式";
  236. this.menuModbusSimulation.CheckOnClick = true;
  237. this.menuModbusSimulation.Click += new System.EventHandler(this.menuModbusSimulation_Click);
  238. //
  239. // grpAPS7100Status
  240. //
  241. this.grpAPS7100Status.Controls.Add(this.lblAPS7100Title);
  242. this.grpAPS7100Status.Controls.Add(this.pnlAPS7100Indicator);
  243. this.grpAPS7100Status.Controls.Add(this.lblAPS7100ConnStatus);
  244. this.grpAPS7100Status.Controls.Add(this.lblAPS7100ConnInfo);
  245. this.grpAPS7100Status.Controls.Add(this.lblAPS7100IDN);
  246. this.grpAPS7100Status.Controls.Add(this.lblAPS7100OutputLabel);
  247. this.grpAPS7100Status.Controls.Add(this.lblAPS7100OutputStatus);
  248. this.grpAPS7100Status.Controls.Add(this.lblAPS7100VoltageLabel);
  249. this.grpAPS7100Status.Controls.Add(this.lblAPS7100VoltageValue);
  250. this.grpAPS7100Status.Controls.Add(this.lblAPS7100CurrentLabel);
  251. this.grpAPS7100Status.Controls.Add(this.lblAPS7100CurrentValue);
  252. this.grpAPS7100Status.Controls.Add(this.lblAPS7100PowerLabel);
  253. this.grpAPS7100Status.Controls.Add(this.lblAPS7100PowerValue);
  254. this.grpAPS7100Status.Controls.Add(this.lblAPS7100FreqLabel);
  255. this.grpAPS7100Status.Controls.Add(this.lblAPS7100FreqValue);
  256. this.grpAPS7100Status.Controls.Add(this.lblAPS7100PFLabel);
  257. this.grpAPS7100Status.Controls.Add(this.lblAPS7100PFValue);
  258. this.grpAPS7100Status.Controls.Add(this.btnConnectAPS7100);
  259. this.grpAPS7100Status.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold);
  260. this.grpAPS7100Status.ForeColor = System.Drawing.Color.FromArgb(0, 100, 180);
  261. this.grpAPS7100Status.Location = new System.Drawing.Point(12, 35);
  262. this.grpAPS7100Status.Name = "grpAPS7100Status";
  263. this.grpAPS7100Status.Size = new System.Drawing.Size(472, 280);
  264. this.grpAPS7100Status.Text = "APS-7100 (AC 可编程电源)";
  265. // lblAPS7100Title (hidden, used for groupbox title)
  266. this.lblAPS7100Title.Visible = false;
  267. // pnlAPS7100Indicator
  268. this.pnlAPS7100Indicator.BackColor = System.Drawing.Color.Gray;
  269. this.pnlAPS7100Indicator.Location = new System.Drawing.Point(15, 30);
  270. this.pnlAPS7100Indicator.Size = new System.Drawing.Size(20, 20);
  271. // lblAPS7100ConnStatus
  272. this.lblAPS7100ConnStatus.AutoSize = true;
  273. this.lblAPS7100ConnStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold);
  274. this.lblAPS7100ConnStatus.ForeColor = System.Drawing.Color.Gray;
  275. this.lblAPS7100ConnStatus.Location = new System.Drawing.Point(45, 30);
  276. this.lblAPS7100ConnStatus.Text = "未连接";
  277. // lblAPS7100ConnInfo
  278. this.lblAPS7100ConnInfo.AutoSize = true;
  279. this.lblAPS7100ConnInfo.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  280. this.lblAPS7100ConnInfo.ForeColor = System.Drawing.Color.DimGray;
  281. this.lblAPS7100ConnInfo.Location = new System.Drawing.Point(15, 55);
  282. this.lblAPS7100ConnInfo.Text = "连接信息: --";
  283. // lblAPS7100IDN
  284. this.lblAPS7100IDN.AutoSize = true;
  285. this.lblAPS7100IDN.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F);
  286. this.lblAPS7100IDN.ForeColor = System.Drawing.Color.DimGray;
  287. this.lblAPS7100IDN.Location = new System.Drawing.Point(15, 75);
  288. this.lblAPS7100IDN.Text = "设备: --";
  289. // lblAPS7100OutputLabel
  290. this.lblAPS7100OutputLabel.AutoSize = true;
  291. this.lblAPS7100OutputLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  292. this.lblAPS7100OutputLabel.ForeColor = System.Drawing.Color.Black;
  293. this.lblAPS7100OutputLabel.Location = new System.Drawing.Point(15, 105);
  294. this.lblAPS7100OutputLabel.Text = "输出状态:";
  295. // lblAPS7100OutputStatus
  296. this.lblAPS7100OutputStatus.AutoSize = true;
  297. this.lblAPS7100OutputStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold);
  298. this.lblAPS7100OutputStatus.ForeColor = System.Drawing.Color.Gray;
  299. this.lblAPS7100OutputStatus.Location = new System.Drawing.Point(85, 104);
  300. this.lblAPS7100OutputStatus.Text = "OFF";
  301. // Measurement Labels
  302. this.lblAPS7100VoltageLabel.AutoSize = true;
  303. this.lblAPS7100VoltageLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  304. this.lblAPS7100VoltageLabel.ForeColor = System.Drawing.Color.Black;
  305. this.lblAPS7100VoltageLabel.Location = new System.Drawing.Point(15, 135);
  306. this.lblAPS7100VoltageLabel.Text = "电压:";
  307. this.lblAPS7100VoltageValue.AutoSize = true;
  308. this.lblAPS7100VoltageValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold);
  309. this.lblAPS7100VoltageValue.ForeColor = System.Drawing.Color.FromArgb(0, 100, 180);
  310. this.lblAPS7100VoltageValue.Location = new System.Drawing.Point(60, 132);
  311. this.lblAPS7100VoltageValue.Text = "--- V";
  312. this.lblAPS7100CurrentLabel.AutoSize = true;
  313. this.lblAPS7100CurrentLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  314. this.lblAPS7100CurrentLabel.ForeColor = System.Drawing.Color.Black;
  315. this.lblAPS7100CurrentLabel.Location = new System.Drawing.Point(170, 135);
  316. this.lblAPS7100CurrentLabel.Text = "电流:";
  317. this.lblAPS7100CurrentValue.AutoSize = true;
  318. this.lblAPS7100CurrentValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold);
  319. this.lblAPS7100CurrentValue.ForeColor = System.Drawing.Color.FromArgb(0, 100, 180);
  320. this.lblAPS7100CurrentValue.Location = new System.Drawing.Point(215, 132);
  321. this.lblAPS7100CurrentValue.Text = "--- A";
  322. this.lblAPS7100PowerLabel.AutoSize = true;
  323. this.lblAPS7100PowerLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  324. this.lblAPS7100PowerLabel.ForeColor = System.Drawing.Color.Black;
  325. this.lblAPS7100PowerLabel.Location = new System.Drawing.Point(15, 165);
  326. this.lblAPS7100PowerLabel.Text = "功率:";
  327. this.lblAPS7100PowerValue.AutoSize = true;
  328. this.lblAPS7100PowerValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold);
  329. this.lblAPS7100PowerValue.ForeColor = System.Drawing.Color.FromArgb(0, 100, 180);
  330. this.lblAPS7100PowerValue.Location = new System.Drawing.Point(60, 162);
  331. this.lblAPS7100PowerValue.Text = "--- W";
  332. this.lblAPS7100FreqLabel.AutoSize = true;
  333. this.lblAPS7100FreqLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  334. this.lblAPS7100FreqLabel.ForeColor = System.Drawing.Color.Black;
  335. this.lblAPS7100FreqLabel.Location = new System.Drawing.Point(170, 165);
  336. this.lblAPS7100FreqLabel.Text = "频率:";
  337. this.lblAPS7100FreqValue.AutoSize = true;
  338. this.lblAPS7100FreqValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold);
  339. this.lblAPS7100FreqValue.ForeColor = System.Drawing.Color.FromArgb(0, 100, 180);
  340. this.lblAPS7100FreqValue.Location = new System.Drawing.Point(215, 162);
  341. this.lblAPS7100FreqValue.Text = "--- Hz";
  342. this.lblAPS7100PFLabel.AutoSize = true;
  343. this.lblAPS7100PFLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  344. this.lblAPS7100PFLabel.ForeColor = System.Drawing.Color.Black;
  345. this.lblAPS7100PFLabel.Location = new System.Drawing.Point(15, 195);
  346. this.lblAPS7100PFLabel.Text = "功率因数:";
  347. this.lblAPS7100PFValue.AutoSize = true;
  348. this.lblAPS7100PFValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold);
  349. this.lblAPS7100PFValue.ForeColor = System.Drawing.Color.FromArgb(0, 100, 180);
  350. this.lblAPS7100PFValue.Location = new System.Drawing.Point(90, 192);
  351. this.lblAPS7100PFValue.Text = "---";
  352. // btnConnectAPS7100
  353. this.btnConnectAPS7100.BackColor = System.Drawing.Color.LightGreen;
  354. this.btnConnectAPS7100.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold);
  355. this.btnConnectAPS7100.ForeColor = System.Drawing.Color.Black;
  356. this.btnConnectAPS7100.Location = new System.Drawing.Point(15, 230);
  357. this.btnConnectAPS7100.Size = new System.Drawing.Size(442, 38);
  358. this.btnConnectAPS7100.Text = "连 接";
  359. this.btnConnectAPS7100.UseVisualStyleBackColor = false;
  360. this.btnConnectAPS7100.Click += new System.EventHandler(this.btnConnectAPS7100_Click);
  361. //
  362. // grpPSW250Status
  363. //
  364. this.grpPSW250Status.Controls.Add(this.lblPSW250Title);
  365. this.grpPSW250Status.Controls.Add(this.pnlPSW250Indicator);
  366. this.grpPSW250Status.Controls.Add(this.lblPSW250ConnStatus);
  367. this.grpPSW250Status.Controls.Add(this.lblPSW250ConnInfo);
  368. this.grpPSW250Status.Controls.Add(this.lblPSW250IDN);
  369. this.grpPSW250Status.Controls.Add(this.lblPSW250OutputLabel);
  370. this.grpPSW250Status.Controls.Add(this.lblPSW250OutputStatus);
  371. this.grpPSW250Status.Controls.Add(this.lblPSW250ModeLabel);
  372. this.grpPSW250Status.Controls.Add(this.lblPSW250ModeValue);
  373. this.grpPSW250Status.Controls.Add(this.lblPSW250VoltageLabel);
  374. this.grpPSW250Status.Controls.Add(this.lblPSW250VoltageValue);
  375. this.grpPSW250Status.Controls.Add(this.lblPSW250CurrentLabel);
  376. this.grpPSW250Status.Controls.Add(this.lblPSW250CurrentValue);
  377. this.grpPSW250Status.Controls.Add(this.lblPSW250PowerLabel);
  378. this.grpPSW250Status.Controls.Add(this.lblPSW250PowerValue);
  379. this.grpPSW250Status.Controls.Add(this.btnConnectPSW250);
  380. this.grpPSW250Status.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold);
  381. this.grpPSW250Status.ForeColor = System.Drawing.Color.FromArgb(0, 130, 60);
  382. this.grpPSW250Status.Location = new System.Drawing.Point(496, 35);
  383. this.grpPSW250Status.Name = "grpPSW250Status";
  384. this.grpPSW250Status.Size = new System.Drawing.Size(472, 280);
  385. this.grpPSW250Status.Text = "PSW-250 (DC 可编程电源)";
  386. // lblPSW250Title (hidden)
  387. this.lblPSW250Title.Visible = false;
  388. // pnlPSW250Indicator
  389. this.pnlPSW250Indicator.BackColor = System.Drawing.Color.Gray;
  390. this.pnlPSW250Indicator.Location = new System.Drawing.Point(15, 30);
  391. this.pnlPSW250Indicator.Size = new System.Drawing.Size(20, 20);
  392. // lblPSW250ConnStatus
  393. this.lblPSW250ConnStatus.AutoSize = true;
  394. this.lblPSW250ConnStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold);
  395. this.lblPSW250ConnStatus.ForeColor = System.Drawing.Color.Gray;
  396. this.lblPSW250ConnStatus.Location = new System.Drawing.Point(45, 30);
  397. this.lblPSW250ConnStatus.Text = "未连接";
  398. // lblPSW250ConnInfo
  399. this.lblPSW250ConnInfo.AutoSize = true;
  400. this.lblPSW250ConnInfo.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  401. this.lblPSW250ConnInfo.ForeColor = System.Drawing.Color.DimGray;
  402. this.lblPSW250ConnInfo.Location = new System.Drawing.Point(15, 55);
  403. this.lblPSW250ConnInfo.Text = "连接信息: --";
  404. // lblPSW250IDN
  405. this.lblPSW250IDN.AutoSize = true;
  406. this.lblPSW250IDN.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F);
  407. this.lblPSW250IDN.ForeColor = System.Drawing.Color.DimGray;
  408. this.lblPSW250IDN.Location = new System.Drawing.Point(15, 75);
  409. this.lblPSW250IDN.Text = "设备: --";
  410. // lblPSW250OutputLabel
  411. this.lblPSW250OutputLabel.AutoSize = true;
  412. this.lblPSW250OutputLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  413. this.lblPSW250OutputLabel.ForeColor = System.Drawing.Color.Black;
  414. this.lblPSW250OutputLabel.Location = new System.Drawing.Point(15, 105);
  415. this.lblPSW250OutputLabel.Text = "输出状态:";
  416. // lblPSW250OutputStatus
  417. this.lblPSW250OutputStatus.AutoSize = true;
  418. this.lblPSW250OutputStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold);
  419. this.lblPSW250OutputStatus.ForeColor = System.Drawing.Color.Gray;
  420. this.lblPSW250OutputStatus.Location = new System.Drawing.Point(85, 104);
  421. this.lblPSW250OutputStatus.Text = "OFF";
  422. // lblPSW250ModeLabel
  423. this.lblPSW250ModeLabel.AutoSize = true;
  424. this.lblPSW250ModeLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  425. this.lblPSW250ModeLabel.ForeColor = System.Drawing.Color.Black;
  426. this.lblPSW250ModeLabel.Location = new System.Drawing.Point(150, 105);
  427. this.lblPSW250ModeLabel.Text = "模式:";
  428. // lblPSW250ModeValue
  429. this.lblPSW250ModeValue.AutoSize = true;
  430. this.lblPSW250ModeValue.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold);
  431. this.lblPSW250ModeValue.ForeColor = System.Drawing.Color.DarkOrange;
  432. this.lblPSW250ModeValue.Location = new System.Drawing.Point(190, 104);
  433. this.lblPSW250ModeValue.Text = "--";
  434. // PSW250 Measurements
  435. this.lblPSW250VoltageLabel.AutoSize = true;
  436. this.lblPSW250VoltageLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  437. this.lblPSW250VoltageLabel.ForeColor = System.Drawing.Color.Black;
  438. this.lblPSW250VoltageLabel.Location = new System.Drawing.Point(15, 135);
  439. this.lblPSW250VoltageLabel.Text = "电压:";
  440. this.lblPSW250VoltageValue.AutoSize = true;
  441. this.lblPSW250VoltageValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold);
  442. this.lblPSW250VoltageValue.ForeColor = System.Drawing.Color.FromArgb(0, 130, 60);
  443. this.lblPSW250VoltageValue.Location = new System.Drawing.Point(60, 132);
  444. this.lblPSW250VoltageValue.Text = "--- V";
  445. this.lblPSW250CurrentLabel.AutoSize = true;
  446. this.lblPSW250CurrentLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  447. this.lblPSW250CurrentLabel.ForeColor = System.Drawing.Color.Black;
  448. this.lblPSW250CurrentLabel.Location = new System.Drawing.Point(170, 135);
  449. this.lblPSW250CurrentLabel.Text = "电流:";
  450. this.lblPSW250CurrentValue.AutoSize = true;
  451. this.lblPSW250CurrentValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold);
  452. this.lblPSW250CurrentValue.ForeColor = System.Drawing.Color.FromArgb(0, 130, 60);
  453. this.lblPSW250CurrentValue.Location = new System.Drawing.Point(215, 132);
  454. this.lblPSW250CurrentValue.Text = "--- A";
  455. this.lblPSW250PowerLabel.AutoSize = true;
  456. this.lblPSW250PowerLabel.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  457. this.lblPSW250PowerLabel.ForeColor = System.Drawing.Color.Black;
  458. this.lblPSW250PowerLabel.Location = new System.Drawing.Point(15, 165);
  459. this.lblPSW250PowerLabel.Text = "功率:";
  460. this.lblPSW250PowerValue.AutoSize = true;
  461. this.lblPSW250PowerValue.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Bold);
  462. this.lblPSW250PowerValue.ForeColor = System.Drawing.Color.FromArgb(0, 130, 60);
  463. this.lblPSW250PowerValue.Location = new System.Drawing.Point(60, 162);
  464. this.lblPSW250PowerValue.Text = "--- W";
  465. // btnConnectPSW250
  466. this.btnConnectPSW250.BackColor = System.Drawing.Color.LightGreen;
  467. this.btnConnectPSW250.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold);
  468. this.btnConnectPSW250.ForeColor = System.Drawing.Color.Black;
  469. this.btnConnectPSW250.Location = new System.Drawing.Point(15, 230);
  470. this.btnConnectPSW250.Size = new System.Drawing.Size(442, 38);
  471. this.btnConnectPSW250.Text = "连 接";
  472. this.btnConnectPSW250.UseVisualStyleBackColor = false;
  473. this.btnConnectPSW250.Click += new System.EventHandler(this.btnConnectPSW250_Click);
  474. //
  475. // grpModbusStatus
  476. //
  477. this.grpModbusStatus.Controls.Add(this.lblModbusStatusText);
  478. this.grpModbusStatus.Controls.Add(this.lblModbusPort);
  479. this.grpModbusStatus.Controls.Add(this.lblModbusConfigCount);
  480. this.grpModbusStatus.Controls.Add(this.lblModbusClientCount);
  481. this.grpModbusStatus.Controls.Add(this.lblModbusRequestCount);
  482. this.grpModbusStatus.Controls.Add(this.lblModbusLastRequest);
  483. this.grpModbusStatus.Controls.Add(this.lblModbusHeartbeat);
  484. this.grpModbusStatus.Controls.Add(this.lblModbusDeviceStatus);
  485. this.grpModbusStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold);
  486. this.grpModbusStatus.ForeColor = System.Drawing.Color.FromArgb(128, 0, 128);
  487. this.grpModbusStatus.Location = new System.Drawing.Point(12, 325);
  488. this.grpModbusStatus.Size = new System.Drawing.Size(960, 60);
  489. this.grpModbusStatus.Text = "Modbus TCP 服务器";
  490. // lblModbusStatusText
  491. this.lblModbusStatusText.AutoSize = true;
  492. this.lblModbusStatusText.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold);
  493. this.lblModbusStatusText.ForeColor = System.Drawing.Color.Gray;
  494. this.lblModbusStatusText.Location = new System.Drawing.Point(15, 28);
  495. this.lblModbusStatusText.Text = "● 未启动";
  496. // lblModbusPort
  497. this.lblModbusPort.AutoSize = true;
  498. this.lblModbusPort.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  499. this.lblModbusPort.ForeColor = System.Drawing.Color.Black;
  500. this.lblModbusPort.Location = new System.Drawing.Point(120, 30);
  501. this.lblModbusPort.Text = "端口: 502";
  502. // lblModbusConfigCount
  503. this.lblModbusConfigCount.AutoSize = true;
  504. this.lblModbusConfigCount.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  505. this.lblModbusConfigCount.ForeColor = System.Drawing.Color.Black;
  506. this.lblModbusConfigCount.Location = new System.Drawing.Point(210, 30);
  507. this.lblModbusConfigCount.Text = "规则: 0 条";
  508. // lblModbusClientCount
  509. this.lblModbusClientCount.AutoSize = true;
  510. this.lblModbusClientCount.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold);
  511. this.lblModbusClientCount.ForeColor = System.Drawing.Color.FromArgb(0, 128, 0);
  512. this.lblModbusClientCount.Location = new System.Drawing.Point(310, 30);
  513. this.lblModbusClientCount.Text = "客户端: 0";
  514. // lblModbusRequestCount
  515. this.lblModbusRequestCount.AutoSize = true;
  516. this.lblModbusRequestCount.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  517. this.lblModbusRequestCount.ForeColor = System.Drawing.Color.Black;
  518. this.lblModbusRequestCount.Location = new System.Drawing.Point(410, 30);
  519. this.lblModbusRequestCount.Text = "请求: 0";
  520. // lblModbusLastRequest
  521. this.lblModbusLastRequest.AutoSize = true;
  522. this.lblModbusLastRequest.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  523. this.lblModbusLastRequest.ForeColor = System.Drawing.Color.DimGray;
  524. this.lblModbusLastRequest.Location = new System.Drawing.Point(500, 30);
  525. this.lblModbusLastRequest.Text = "最后通讯: --";
  526. // lblModbusHeartbeat
  527. this.lblModbusHeartbeat.AutoSize = true;
  528. this.lblModbusHeartbeat.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  529. this.lblModbusHeartbeat.ForeColor = System.Drawing.Color.DarkOrange;
  530. this.lblModbusHeartbeat.Location = new System.Drawing.Point(620, 30);
  531. this.lblModbusHeartbeat.Text = "心跳: --";
  532. // lblModbusDeviceStatus
  533. this.lblModbusDeviceStatus.AutoSize = true;
  534. this.lblModbusDeviceStatus.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  535. this.lblModbusDeviceStatus.ForeColor = System.Drawing.Color.DarkCyan;
  536. this.lblModbusDeviceStatus.Location = new System.Drawing.Point(760, 30);
  537. this.lblModbusDeviceStatus.Text = "设备: --";
  538. //
  539. // grpLog
  540. //
  541. this.grpLog.Controls.Add(this.txtLog);
  542. this.grpLog.Controls.Add(this.btnClearLog);
  543. this.grpLog.Location = new System.Drawing.Point(12, 395);
  544. this.grpLog.Size = new System.Drawing.Size(953, 155);
  545. this.grpLog.Text = "操作日志";
  546. // txtLog
  547. this.txtLog.Font = new System.Drawing.Font("Consolas", 9F);
  548. this.txtLog.Location = new System.Drawing.Point(10, 22);
  549. this.txtLog.Multiline = true;
  550. this.txtLog.ReadOnly = true;
  551. this.txtLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
  552. this.txtLog.Size = new System.Drawing.Size(930, 95);
  553. // btnClearLog
  554. this.btnClearLog.Location = new System.Drawing.Point(10, 122);
  555. this.btnClearLog.Size = new System.Drawing.Size(700, 25);
  556. this.btnClearLog.Text = "清空日志";
  557. this.btnClearLog.Click += new System.EventHandler(this.btnClearLog_Click);
  558. //
  559. // MainForm
  560. //
  561. this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
  562. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  563. this.ClientSize = new System.Drawing.Size(980, 560);
  564. this.Controls.Add(this.menuStrip);
  565. this.Controls.Add(this.grpAPS7100Status);
  566. this.Controls.Add(this.grpPSW250Status);
  567. this.Controls.Add(this.grpModbusStatus);
  568. this.Controls.Add(this.grpLog);
  569. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
  570. this.MainMenuStrip = this.menuStrip;
  571. this.MaximizeBox = false;
  572. this.Name = "MainForm";
  573. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  574. this.Text = "固纬电源测试工具 v4.0";
  575. this.menuStrip.ResumeLayout(false);
  576. this.menuStrip.PerformLayout();
  577. this.grpAPS7100Status.ResumeLayout(false);
  578. this.grpAPS7100Status.PerformLayout();
  579. this.grpPSW250Status.ResumeLayout(false);
  580. this.grpPSW250Status.PerformLayout();
  581. this.grpModbusStatus.ResumeLayout(false);
  582. this.grpModbusStatus.PerformLayout();
  583. this.grpLog.ResumeLayout(false);
  584. this.grpLog.PerformLayout();
  585. this.ResumeLayout(false);
  586. this.PerformLayout();
  587. }
  588. }
  589. }