SettingsForm.Designer.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. namespace APS7100TestTool.Forms
  2. {
  3. partial class SettingsForm
  4. {
  5. private System.ComponentModel.IContainer components = null;
  6. // APS7100 Controls
  7. private System.Windows.Forms.GroupBox grpAPS7100;
  8. private System.Windows.Forms.CheckBox chkAutoConnectAPS7100;
  9. private System.Windows.Forms.RadioButton rbAPS7100Serial;
  10. private System.Windows.Forms.RadioButton rbAPS7100Ethernet;
  11. private System.Windows.Forms.Label lblAPS7100ComPort;
  12. private System.Windows.Forms.ComboBox cmbAPS7100ComPort;
  13. private System.Windows.Forms.Label lblAPS7100BaudRate;
  14. private System.Windows.Forms.ComboBox cmbAPS7100BaudRate;
  15. private System.Windows.Forms.Label lblAPS7100IpAddress;
  16. private System.Windows.Forms.TextBox txtAPS7100IpAddress;
  17. private System.Windows.Forms.Label lblAPS7100Port;
  18. private System.Windows.Forms.NumericUpDown numAPS7100Port;
  19. // PSW250 Controls
  20. private System.Windows.Forms.GroupBox grpPSW250;
  21. private System.Windows.Forms.CheckBox chkAutoConnectPSW250;
  22. private System.Windows.Forms.RadioButton rbPSW250Serial;
  23. private System.Windows.Forms.RadioButton rbPSW250Ethernet;
  24. private System.Windows.Forms.Label lblPSW250ComPort;
  25. private System.Windows.Forms.ComboBox cmbPSW250ComPort;
  26. private System.Windows.Forms.Label lblPSW250BaudRate;
  27. private System.Windows.Forms.ComboBox cmbPSW250BaudRate;
  28. private System.Windows.Forms.Label lblPSW250IpAddress;
  29. private System.Windows.Forms.TextBox txtPSW250IpAddress;
  30. private System.Windows.Forms.Label lblPSW250Port;
  31. private System.Windows.Forms.NumericUpDown numPSW250Port;
  32. // Modbus Controls
  33. private System.Windows.Forms.GroupBox grpModbus;
  34. private System.Windows.Forms.CheckBox chkAutoStartModbus;
  35. private System.Windows.Forms.Label lblModbusBindIp;
  36. private System.Windows.Forms.ComboBox cmbModbusBindIp;
  37. private System.Windows.Forms.Label lblModbusPort;
  38. private System.Windows.Forms.NumericUpDown numModbusPort;
  39. // Startup Behavior Controls
  40. private System.Windows.Forms.GroupBox grpStartup;
  41. private System.Windows.Forms.CheckBox chkStartMinimized;
  42. // Buttons
  43. private System.Windows.Forms.Button btnRefreshPorts;
  44. private System.Windows.Forms.Button btnSave;
  45. private System.Windows.Forms.Button btnCancel;
  46. protected override void Dispose(bool disposing)
  47. {
  48. if (disposing && (components != null))
  49. {
  50. components.Dispose();
  51. }
  52. base.Dispose(disposing);
  53. }
  54. private void InitializeComponent()
  55. {
  56. this.grpAPS7100 = new System.Windows.Forms.GroupBox();
  57. this.chkAutoConnectAPS7100 = new System.Windows.Forms.CheckBox();
  58. this.rbAPS7100Serial = new System.Windows.Forms.RadioButton();
  59. this.rbAPS7100Ethernet = new System.Windows.Forms.RadioButton();
  60. this.lblAPS7100ComPort = new System.Windows.Forms.Label();
  61. this.cmbAPS7100ComPort = new System.Windows.Forms.ComboBox();
  62. this.lblAPS7100BaudRate = new System.Windows.Forms.Label();
  63. this.cmbAPS7100BaudRate = new System.Windows.Forms.ComboBox();
  64. this.lblAPS7100IpAddress = new System.Windows.Forms.Label();
  65. this.txtAPS7100IpAddress = new System.Windows.Forms.TextBox();
  66. this.lblAPS7100Port = new System.Windows.Forms.Label();
  67. this.numAPS7100Port = new System.Windows.Forms.NumericUpDown();
  68. this.grpPSW250 = new System.Windows.Forms.GroupBox();
  69. this.chkAutoConnectPSW250 = new System.Windows.Forms.CheckBox();
  70. this.rbPSW250Serial = new System.Windows.Forms.RadioButton();
  71. this.rbPSW250Ethernet = new System.Windows.Forms.RadioButton();
  72. this.lblPSW250ComPort = new System.Windows.Forms.Label();
  73. this.cmbPSW250ComPort = new System.Windows.Forms.ComboBox();
  74. this.lblPSW250BaudRate = new System.Windows.Forms.Label();
  75. this.cmbPSW250BaudRate = new System.Windows.Forms.ComboBox();
  76. this.lblPSW250IpAddress = new System.Windows.Forms.Label();
  77. this.txtPSW250IpAddress = new System.Windows.Forms.TextBox();
  78. this.lblPSW250Port = new System.Windows.Forms.Label();
  79. this.numPSW250Port = new System.Windows.Forms.NumericUpDown();
  80. this.grpModbus = new System.Windows.Forms.GroupBox();
  81. this.chkAutoStartModbus = new System.Windows.Forms.CheckBox();
  82. this.lblModbusBindIp = new System.Windows.Forms.Label();
  83. this.cmbModbusBindIp = new System.Windows.Forms.ComboBox();
  84. this.lblModbusPort = new System.Windows.Forms.Label();
  85. this.numModbusPort = new System.Windows.Forms.NumericUpDown();
  86. this.grpStartup = new System.Windows.Forms.GroupBox();
  87. this.chkStartMinimized = new System.Windows.Forms.CheckBox();
  88. this.btnRefreshPorts = new System.Windows.Forms.Button();
  89. this.btnSave = new System.Windows.Forms.Button();
  90. this.btnCancel = new System.Windows.Forms.Button();
  91. this.grpAPS7100.SuspendLayout();
  92. ((System.ComponentModel.ISupportInitialize)(this.numAPS7100Port)).BeginInit();
  93. this.grpPSW250.SuspendLayout();
  94. ((System.ComponentModel.ISupportInitialize)(this.numPSW250Port)).BeginInit();
  95. this.grpModbus.SuspendLayout();
  96. ((System.ComponentModel.ISupportInitialize)(this.numModbusPort)).BeginInit();
  97. this.grpStartup.SuspendLayout();
  98. this.SuspendLayout();
  99. //
  100. // grpAPS7100
  101. //
  102. this.grpAPS7100.Controls.Add(this.chkAutoConnectAPS7100);
  103. this.grpAPS7100.Controls.Add(this.rbAPS7100Serial);
  104. this.grpAPS7100.Controls.Add(this.rbAPS7100Ethernet);
  105. this.grpAPS7100.Controls.Add(this.lblAPS7100ComPort);
  106. this.grpAPS7100.Controls.Add(this.cmbAPS7100ComPort);
  107. this.grpAPS7100.Controls.Add(this.lblAPS7100BaudRate);
  108. this.grpAPS7100.Controls.Add(this.cmbAPS7100BaudRate);
  109. this.grpAPS7100.Controls.Add(this.lblAPS7100IpAddress);
  110. this.grpAPS7100.Controls.Add(this.txtAPS7100IpAddress);
  111. this.grpAPS7100.Controls.Add(this.lblAPS7100Port);
  112. this.grpAPS7100.Controls.Add(this.numAPS7100Port);
  113. this.grpAPS7100.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold);
  114. this.grpAPS7100.ForeColor = System.Drawing.Color.FromArgb(0, 120, 215);
  115. this.grpAPS7100.Location = new System.Drawing.Point(12, 12);
  116. this.grpAPS7100.Name = "grpAPS7100";
  117. this.grpAPS7100.Size = new System.Drawing.Size(360, 150);
  118. this.grpAPS7100.TabIndex = 0;
  119. this.grpAPS7100.TabStop = false;
  120. this.grpAPS7100.Text = "APS-7100 (AC 电源) 自动连接";
  121. // chkAutoConnectAPS7100
  122. this.chkAutoConnectAPS7100.AutoSize = true;
  123. this.chkAutoConnectAPS7100.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  124. this.chkAutoConnectAPS7100.ForeColor = System.Drawing.Color.Black;
  125. this.chkAutoConnectAPS7100.Location = new System.Drawing.Point(15, 25);
  126. this.chkAutoConnectAPS7100.Name = "chkAutoConnectAPS7100";
  127. this.chkAutoConnectAPS7100.Size = new System.Drawing.Size(135, 21);
  128. this.chkAutoConnectAPS7100.Text = "启动时自动连接";
  129. // rbAPS7100Serial
  130. this.rbAPS7100Serial.AutoSize = true;
  131. this.rbAPS7100Serial.Checked = true;
  132. this.rbAPS7100Serial.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  133. this.rbAPS7100Serial.ForeColor = System.Drawing.Color.Black;
  134. this.rbAPS7100Serial.Location = new System.Drawing.Point(15, 52);
  135. this.rbAPS7100Serial.Name = "rbAPS7100Serial";
  136. this.rbAPS7100Serial.Size = new System.Drawing.Size(74, 21);
  137. this.rbAPS7100Serial.TabStop = true;
  138. this.rbAPS7100Serial.Text = "串口";
  139. this.rbAPS7100Serial.CheckedChanged += new System.EventHandler(this.rbAPS7100_CheckedChanged);
  140. // rbAPS7100Ethernet
  141. this.rbAPS7100Ethernet.AutoSize = true;
  142. this.rbAPS7100Ethernet.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  143. this.rbAPS7100Ethernet.ForeColor = System.Drawing.Color.Black;
  144. this.rbAPS7100Ethernet.Location = new System.Drawing.Point(90, 52);
  145. this.rbAPS7100Ethernet.Name = "rbAPS7100Ethernet";
  146. this.rbAPS7100Ethernet.Size = new System.Drawing.Size(74, 21);
  147. this.rbAPS7100Ethernet.Text = "网口";
  148. this.rbAPS7100Ethernet.CheckedChanged += new System.EventHandler(this.rbAPS7100_CheckedChanged);
  149. // lblAPS7100ComPort
  150. this.lblAPS7100ComPort.AutoSize = true;
  151. this.lblAPS7100ComPort.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  152. this.lblAPS7100ComPort.ForeColor = System.Drawing.Color.Black;
  153. this.lblAPS7100ComPort.Location = new System.Drawing.Point(15, 85);
  154. this.lblAPS7100ComPort.Text = "串口:";
  155. // cmbAPS7100ComPort
  156. this.cmbAPS7100ComPort.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  157. this.cmbAPS7100ComPort.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  158. this.cmbAPS7100ComPort.Location = new System.Drawing.Point(60, 82);
  159. this.cmbAPS7100ComPort.Size = new System.Drawing.Size(100, 25);
  160. // lblAPS7100BaudRate
  161. this.lblAPS7100BaudRate.AutoSize = true;
  162. this.lblAPS7100BaudRate.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  163. this.lblAPS7100BaudRate.ForeColor = System.Drawing.Color.Black;
  164. this.lblAPS7100BaudRate.Location = new System.Drawing.Point(170, 85);
  165. this.lblAPS7100BaudRate.Text = "波特率:";
  166. // cmbAPS7100BaudRate
  167. this.cmbAPS7100BaudRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  168. this.cmbAPS7100BaudRate.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  169. this.cmbAPS7100BaudRate.Items.AddRange(new object[] { "9600", "19200", "38400", "57600", "115200" });
  170. this.cmbAPS7100BaudRate.Location = new System.Drawing.Point(230, 82);
  171. this.cmbAPS7100BaudRate.Size = new System.Drawing.Size(115, 25);
  172. this.cmbAPS7100BaudRate.SelectedIndex = 0;
  173. // lblAPS7100IpAddress
  174. this.lblAPS7100IpAddress.AutoSize = true;
  175. this.lblAPS7100IpAddress.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  176. this.lblAPS7100IpAddress.ForeColor = System.Drawing.Color.Black;
  177. this.lblAPS7100IpAddress.Location = new System.Drawing.Point(15, 85);
  178. this.lblAPS7100IpAddress.Text = "IP地址:";
  179. this.lblAPS7100IpAddress.Visible = false;
  180. // txtAPS7100IpAddress
  181. this.txtAPS7100IpAddress.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  182. this.txtAPS7100IpAddress.Location = new System.Drawing.Point(70, 82);
  183. this.txtAPS7100IpAddress.Size = new System.Drawing.Size(130, 23);
  184. this.txtAPS7100IpAddress.Text = "192.168.1.100";
  185. this.txtAPS7100IpAddress.Visible = false;
  186. // lblAPS7100Port
  187. this.lblAPS7100Port.AutoSize = true;
  188. this.lblAPS7100Port.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  189. this.lblAPS7100Port.ForeColor = System.Drawing.Color.Black;
  190. this.lblAPS7100Port.Location = new System.Drawing.Point(210, 85);
  191. this.lblAPS7100Port.Text = "端口:";
  192. this.lblAPS7100Port.Visible = false;
  193. // numAPS7100Port
  194. this.numAPS7100Port.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  195. this.numAPS7100Port.Location = new System.Drawing.Point(255, 82);
  196. this.numAPS7100Port.Maximum = new decimal(new int[] { 65535, 0, 0, 0 });
  197. this.numAPS7100Port.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
  198. this.numAPS7100Port.Size = new System.Drawing.Size(90, 23);
  199. this.numAPS7100Port.Value = new decimal(new int[] { 2268, 0, 0, 0 });
  200. this.numAPS7100Port.Visible = false;
  201. //
  202. // grpPSW250
  203. //
  204. this.grpPSW250.Controls.Add(this.chkAutoConnectPSW250);
  205. this.grpPSW250.Controls.Add(this.rbPSW250Serial);
  206. this.grpPSW250.Controls.Add(this.rbPSW250Ethernet);
  207. this.grpPSW250.Controls.Add(this.lblPSW250ComPort);
  208. this.grpPSW250.Controls.Add(this.cmbPSW250ComPort);
  209. this.grpPSW250.Controls.Add(this.lblPSW250BaudRate);
  210. this.grpPSW250.Controls.Add(this.cmbPSW250BaudRate);
  211. this.grpPSW250.Controls.Add(this.lblPSW250IpAddress);
  212. this.grpPSW250.Controls.Add(this.txtPSW250IpAddress);
  213. this.grpPSW250.Controls.Add(this.lblPSW250Port);
  214. this.grpPSW250.Controls.Add(this.numPSW250Port);
  215. this.grpPSW250.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold);
  216. this.grpPSW250.ForeColor = System.Drawing.Color.FromArgb(0, 150, 80);
  217. this.grpPSW250.Location = new System.Drawing.Point(12, 172);
  218. this.grpPSW250.Name = "grpPSW250";
  219. this.grpPSW250.Size = new System.Drawing.Size(360, 150);
  220. this.grpPSW250.TabIndex = 1;
  221. this.grpPSW250.TabStop = false;
  222. this.grpPSW250.Text = "PSW-250 (DC 电源) 自动连接";
  223. // chkAutoConnectPSW250
  224. this.chkAutoConnectPSW250.AutoSize = true;
  225. this.chkAutoConnectPSW250.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  226. this.chkAutoConnectPSW250.ForeColor = System.Drawing.Color.Black;
  227. this.chkAutoConnectPSW250.Location = new System.Drawing.Point(15, 25);
  228. this.chkAutoConnectPSW250.Name = "chkAutoConnectPSW250";
  229. this.chkAutoConnectPSW250.Size = new System.Drawing.Size(135, 21);
  230. this.chkAutoConnectPSW250.Text = "启动时自动连接";
  231. // rbPSW250Serial
  232. this.rbPSW250Serial.AutoSize = true;
  233. this.rbPSW250Serial.Checked = true;
  234. this.rbPSW250Serial.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  235. this.rbPSW250Serial.ForeColor = System.Drawing.Color.Black;
  236. this.rbPSW250Serial.Location = new System.Drawing.Point(15, 52);
  237. this.rbPSW250Serial.Name = "rbPSW250Serial";
  238. this.rbPSW250Serial.Size = new System.Drawing.Size(74, 21);
  239. this.rbPSW250Serial.TabStop = true;
  240. this.rbPSW250Serial.Text = "串口";
  241. this.rbPSW250Serial.CheckedChanged += new System.EventHandler(this.rbPSW250_CheckedChanged);
  242. // rbPSW250Ethernet
  243. this.rbPSW250Ethernet.AutoSize = true;
  244. this.rbPSW250Ethernet.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  245. this.rbPSW250Ethernet.ForeColor = System.Drawing.Color.Black;
  246. this.rbPSW250Ethernet.Location = new System.Drawing.Point(90, 52);
  247. this.rbPSW250Ethernet.Name = "rbPSW250Ethernet";
  248. this.rbPSW250Ethernet.Size = new System.Drawing.Size(74, 21);
  249. this.rbPSW250Ethernet.Text = "网口";
  250. this.rbPSW250Ethernet.CheckedChanged += new System.EventHandler(this.rbPSW250_CheckedChanged);
  251. // lblPSW250ComPort
  252. this.lblPSW250ComPort.AutoSize = true;
  253. this.lblPSW250ComPort.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  254. this.lblPSW250ComPort.ForeColor = System.Drawing.Color.Black;
  255. this.lblPSW250ComPort.Location = new System.Drawing.Point(15, 85);
  256. this.lblPSW250ComPort.Text = "串口:";
  257. // cmbPSW250ComPort
  258. this.cmbPSW250ComPort.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  259. this.cmbPSW250ComPort.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  260. this.cmbPSW250ComPort.Location = new System.Drawing.Point(60, 82);
  261. this.cmbPSW250ComPort.Size = new System.Drawing.Size(100, 25);
  262. // lblPSW250BaudRate
  263. this.lblPSW250BaudRate.AutoSize = true;
  264. this.lblPSW250BaudRate.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  265. this.lblPSW250BaudRate.ForeColor = System.Drawing.Color.Black;
  266. this.lblPSW250BaudRate.Location = new System.Drawing.Point(170, 85);
  267. this.lblPSW250BaudRate.Text = "波特率:";
  268. // cmbPSW250BaudRate
  269. this.cmbPSW250BaudRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  270. this.cmbPSW250BaudRate.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  271. this.cmbPSW250BaudRate.Items.AddRange(new object[] { "9600", "19200", "38400", "57600", "115200" });
  272. this.cmbPSW250BaudRate.Location = new System.Drawing.Point(230, 82);
  273. this.cmbPSW250BaudRate.Size = new System.Drawing.Size(115, 25);
  274. this.cmbPSW250BaudRate.SelectedIndex = 0;
  275. // lblPSW250IpAddress
  276. this.lblPSW250IpAddress.AutoSize = true;
  277. this.lblPSW250IpAddress.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  278. this.lblPSW250IpAddress.ForeColor = System.Drawing.Color.Black;
  279. this.lblPSW250IpAddress.Location = new System.Drawing.Point(15, 85);
  280. this.lblPSW250IpAddress.Text = "IP地址:";
  281. this.lblPSW250IpAddress.Visible = false;
  282. // txtPSW250IpAddress
  283. this.txtPSW250IpAddress.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  284. this.txtPSW250IpAddress.Location = new System.Drawing.Point(70, 82);
  285. this.txtPSW250IpAddress.Size = new System.Drawing.Size(130, 23);
  286. this.txtPSW250IpAddress.Text = "192.168.1.101";
  287. this.txtPSW250IpAddress.Visible = false;
  288. // lblPSW250Port
  289. this.lblPSW250Port.AutoSize = true;
  290. this.lblPSW250Port.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  291. this.lblPSW250Port.ForeColor = System.Drawing.Color.Black;
  292. this.lblPSW250Port.Location = new System.Drawing.Point(210, 85);
  293. this.lblPSW250Port.Text = "端口:";
  294. this.lblPSW250Port.Visible = false;
  295. // numPSW250Port
  296. this.numPSW250Port.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  297. this.numPSW250Port.Location = new System.Drawing.Point(255, 82);
  298. this.numPSW250Port.Maximum = new decimal(new int[] { 65535, 0, 0, 0 });
  299. this.numPSW250Port.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
  300. this.numPSW250Port.Size = new System.Drawing.Size(90, 23);
  301. this.numPSW250Port.Value = new decimal(new int[] { 2268, 0, 0, 0 });
  302. this.numPSW250Port.Visible = false;
  303. //
  304. // grpModbus
  305. //
  306. this.grpModbus.Controls.Add(this.chkAutoStartModbus);
  307. this.grpModbus.Controls.Add(this.lblModbusBindIp);
  308. this.grpModbus.Controls.Add(this.cmbModbusBindIp);
  309. this.grpModbus.Controls.Add(this.lblModbusPort);
  310. this.grpModbus.Controls.Add(this.numModbusPort);
  311. this.grpModbus.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold);
  312. this.grpModbus.ForeColor = System.Drawing.Color.FromArgb(128, 0, 128);
  313. this.grpModbus.Location = new System.Drawing.Point(12, 332);
  314. this.grpModbus.Name = "grpModbus";
  315. this.grpModbus.Size = new System.Drawing.Size(360, 100);
  316. this.grpModbus.TabIndex = 2;
  317. this.grpModbus.TabStop = false;
  318. this.grpModbus.Text = "Modbus TCP 服务";
  319. // chkAutoStartModbus
  320. this.chkAutoStartModbus.AutoSize = true;
  321. this.chkAutoStartModbus.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  322. this.chkAutoStartModbus.ForeColor = System.Drawing.Color.Black;
  323. this.chkAutoStartModbus.Location = new System.Drawing.Point(15, 25);
  324. this.chkAutoStartModbus.Text = "启动时自动启动服务";
  325. // lblModbusBindIp
  326. this.lblModbusBindIp.AutoSize = true;
  327. this.lblModbusBindIp.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  328. this.lblModbusBindIp.ForeColor = System.Drawing.Color.Black;
  329. this.lblModbusBindIp.Location = new System.Drawing.Point(15, 60);
  330. this.lblModbusBindIp.Text = "绑定IP:";
  331. // cmbModbusBindIp
  332. this.cmbModbusBindIp.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  333. this.cmbModbusBindIp.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  334. this.cmbModbusBindIp.Location = new System.Drawing.Point(75, 56);
  335. this.cmbModbusBindIp.Size = new System.Drawing.Size(160, 25);
  336. // lblModbusPort
  337. this.lblModbusPort.AutoSize = true;
  338. this.lblModbusPort.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  339. this.lblModbusPort.ForeColor = System.Drawing.Color.Black;
  340. this.lblModbusPort.Location = new System.Drawing.Point(250, 60);
  341. this.lblModbusPort.Text = "端口:";
  342. // numModbusPort
  343. this.numModbusPort.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  344. this.numModbusPort.Location = new System.Drawing.Point(295, 56);
  345. this.numModbusPort.Maximum = new decimal(new int[] { 65535, 0, 0, 0 });
  346. this.numModbusPort.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
  347. this.numModbusPort.Size = new System.Drawing.Size(50, 23);
  348. this.numModbusPort.Value = new decimal(new int[] { 502, 0, 0, 0 });
  349. //
  350. // grpStartup
  351. //
  352. this.grpStartup.Controls.Add(this.chkStartMinimized);
  353. this.grpStartup.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold);
  354. this.grpStartup.ForeColor = System.Drawing.Color.FromArgb(0, 128, 64);
  355. this.grpStartup.Location = new System.Drawing.Point(12, 440);
  356. this.grpStartup.Name = "grpStartup";
  357. this.grpStartup.Size = new System.Drawing.Size(360, 55);
  358. this.grpStartup.TabIndex = 3;
  359. this.grpStartup.TabStop = false;
  360. this.grpStartup.Text = "启动行为";
  361. // chkStartMinimized
  362. this.chkStartMinimized.AutoSize = true;
  363. this.chkStartMinimized.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
  364. this.chkStartMinimized.ForeColor = System.Drawing.Color.Black;
  365. this.chkStartMinimized.Location = new System.Drawing.Point(15, 25);
  366. this.chkStartMinimized.Text = "启动时最小化到系统托盘(适用于开机自启动)";
  367. //
  368. // btnRefreshPorts
  369. //
  370. this.btnRefreshPorts.Location = new System.Drawing.Point(12, 508);
  371. this.btnRefreshPorts.Name = "btnRefreshPorts";
  372. this.btnRefreshPorts.Size = new System.Drawing.Size(100, 35);
  373. this.btnRefreshPorts.Text = "刷新串口";
  374. this.btnRefreshPorts.UseVisualStyleBackColor = true;
  375. this.btnRefreshPorts.Click += new System.EventHandler(this.btnRefreshPorts_Click);
  376. //
  377. // btnSave
  378. //
  379. this.btnSave.BackColor = System.Drawing.Color.FromArgb(0, 120, 215);
  380. this.btnSave.ForeColor = System.Drawing.Color.White;
  381. this.btnSave.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold);
  382. this.btnSave.Location = new System.Drawing.Point(147, 508);
  383. this.btnSave.Name = "btnSave";
  384. this.btnSave.Size = new System.Drawing.Size(100, 35);
  385. this.btnSave.Text = "保存";
  386. this.btnSave.UseVisualStyleBackColor = false;
  387. this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
  388. //
  389. // btnCancel
  390. //
  391. this.btnCancel.Location = new System.Drawing.Point(272, 508);
  392. this.btnCancel.Name = "btnCancel";
  393. this.btnCancel.Size = new System.Drawing.Size(100, 35);
  394. this.btnCancel.Text = "取消";
  395. this.btnCancel.UseVisualStyleBackColor = true;
  396. this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
  397. //
  398. // SettingsForm
  399. //
  400. this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
  401. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  402. this.ClientSize = new System.Drawing.Size(384, 558);
  403. this.Controls.Add(this.grpAPS7100);
  404. this.Controls.Add(this.grpPSW250);
  405. this.Controls.Add(this.grpModbus);
  406. this.Controls.Add(this.grpStartup);
  407. this.Controls.Add(this.btnRefreshPorts);
  408. this.Controls.Add(this.btnSave);
  409. this.Controls.Add(this.btnCancel);
  410. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
  411. this.MaximizeBox = false;
  412. this.MinimizeBox = false;
  413. this.Name = "SettingsForm";
  414. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
  415. this.Text = "连接设置";
  416. this.grpAPS7100.ResumeLayout(false);
  417. this.grpAPS7100.PerformLayout();
  418. ((System.ComponentModel.ISupportInitialize)(this.numAPS7100Port)).EndInit();
  419. this.grpPSW250.ResumeLayout(false);
  420. this.grpPSW250.PerformLayout();
  421. ((System.ComponentModel.ISupportInitialize)(this.numPSW250Port)).EndInit();
  422. this.grpModbus.ResumeLayout(false);
  423. this.grpModbus.PerformLayout();
  424. ((System.ComponentModel.ISupportInitialize)(this.numModbusPort)).EndInit();
  425. this.grpStartup.ResumeLayout(false);
  426. this.grpStartup.PerformLayout();
  427. this.ResumeLayout(false);
  428. }
  429. }
  430. }