ConnectionDialog.Designer.cs 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. namespace APS7100TestTool.Forms
  2. {
  3. partial class ConnectionDialog
  4. {
  5. private System.ComponentModel.IContainer components = null;
  6. private System.Windows.Forms.Label lblTitle;
  7. private System.Windows.Forms.RadioButton rbSerial;
  8. private System.Windows.Forms.RadioButton rbEthernet;
  9. private System.Windows.Forms.Label lblComPort;
  10. private System.Windows.Forms.ComboBox cmbComPort;
  11. private System.Windows.Forms.Label lblBaudRate;
  12. private System.Windows.Forms.ComboBox cmbBaudRate;
  13. private System.Windows.Forms.Button btnRefresh;
  14. private System.Windows.Forms.Label lblIpAddress;
  15. private System.Windows.Forms.TextBox txtIpAddress;
  16. private System.Windows.Forms.Label lblPort;
  17. private System.Windows.Forms.NumericUpDown numPort;
  18. private System.Windows.Forms.Button btnConnect;
  19. private System.Windows.Forms.Button btnCancel;
  20. protected override void Dispose(bool disposing)
  21. {
  22. if (disposing && (components != null))
  23. {
  24. components.Dispose();
  25. }
  26. base.Dispose(disposing);
  27. }
  28. private void InitializeComponent()
  29. {
  30. this.lblTitle = new System.Windows.Forms.Label();
  31. this.rbSerial = new System.Windows.Forms.RadioButton();
  32. this.rbEthernet = new System.Windows.Forms.RadioButton();
  33. this.lblComPort = new System.Windows.Forms.Label();
  34. this.cmbComPort = new System.Windows.Forms.ComboBox();
  35. this.lblBaudRate = new System.Windows.Forms.Label();
  36. this.cmbBaudRate = new System.Windows.Forms.ComboBox();
  37. this.btnRefresh = new System.Windows.Forms.Button();
  38. this.lblIpAddress = new System.Windows.Forms.Label();
  39. this.txtIpAddress = new System.Windows.Forms.TextBox();
  40. this.lblPort = new System.Windows.Forms.Label();
  41. this.numPort = new System.Windows.Forms.NumericUpDown();
  42. this.btnConnect = new System.Windows.Forms.Button();
  43. this.btnCancel = new System.Windows.Forms.Button();
  44. ((System.ComponentModel.ISupportInitialize)(this.numPort)).BeginInit();
  45. this.SuspendLayout();
  46. // lblTitle
  47. this.lblTitle.AutoSize = true;
  48. this.lblTitle.Font = new System.Drawing.Font("Microsoft YaHei UI", 11F, System.Drawing.FontStyle.Bold);
  49. this.lblTitle.Location = new System.Drawing.Point(12, 15);
  50. this.lblTitle.Text = "连接到设备";
  51. // rbSerial
  52. this.rbSerial.AutoSize = true;
  53. this.rbSerial.Checked = true;
  54. this.rbSerial.Location = new System.Drawing.Point(15, 50);
  55. this.rbSerial.TabStop = true;
  56. this.rbSerial.Text = "串口连接";
  57. this.rbSerial.CheckedChanged += new System.EventHandler(this.rbSerial_CheckedChanged);
  58. // rbEthernet
  59. this.rbEthernet.AutoSize = true;
  60. this.rbEthernet.Location = new System.Drawing.Point(110, 50);
  61. this.rbEthernet.Text = "网口连接";
  62. this.rbEthernet.CheckedChanged += new System.EventHandler(this.rbEthernet_CheckedChanged);
  63. // lblComPort
  64. this.lblComPort.AutoSize = true;
  65. this.lblComPort.Location = new System.Drawing.Point(15, 85);
  66. this.lblComPort.Text = "串口:";
  67. // cmbComPort
  68. this.cmbComPort.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  69. this.cmbComPort.Location = new System.Drawing.Point(70, 82);
  70. this.cmbComPort.Size = new System.Drawing.Size(100, 25);
  71. // btnRefresh
  72. this.btnRefresh.Location = new System.Drawing.Point(180, 80);
  73. this.btnRefresh.Size = new System.Drawing.Size(60, 27);
  74. this.btnRefresh.Text = "刷新";
  75. this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
  76. // lblBaudRate
  77. this.lblBaudRate.AutoSize = true;
  78. this.lblBaudRate.Location = new System.Drawing.Point(15, 120);
  79. this.lblBaudRate.Text = "波特率:";
  80. // cmbBaudRate
  81. this.cmbBaudRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  82. this.cmbBaudRate.Items.AddRange(new object[] { "9600", "19200", "38400", "57600", "115200" });
  83. this.cmbBaudRate.Location = new System.Drawing.Point(70, 117);
  84. this.cmbBaudRate.Size = new System.Drawing.Size(170, 25);
  85. this.cmbBaudRate.SelectedIndex = 0;
  86. // lblIpAddress
  87. this.lblIpAddress.AutoSize = true;
  88. this.lblIpAddress.Location = new System.Drawing.Point(15, 85);
  89. this.lblIpAddress.Text = "IP地址:";
  90. this.lblIpAddress.Visible = false;
  91. // txtIpAddress
  92. this.txtIpAddress.Location = new System.Drawing.Point(70, 82);
  93. this.txtIpAddress.Size = new System.Drawing.Size(170, 23);
  94. this.txtIpAddress.Text = "192.168.1.100";
  95. this.txtIpAddress.Visible = false;
  96. // lblPort
  97. this.lblPort.AutoSize = true;
  98. this.lblPort.Location = new System.Drawing.Point(15, 120);
  99. this.lblPort.Text = "端口:";
  100. this.lblPort.Visible = false;
  101. // numPort
  102. this.numPort.Location = new System.Drawing.Point(70, 117);
  103. this.numPort.Maximum = new decimal(new int[] { 65535, 0, 0, 0 });
  104. this.numPort.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
  105. this.numPort.Size = new System.Drawing.Size(170, 23);
  106. this.numPort.Value = new decimal(new int[] { 2268, 0, 0, 0 });
  107. this.numPort.Visible = false;
  108. // btnConnect
  109. this.btnConnect.BackColor = System.Drawing.Color.FromArgb(0, 120, 215);
  110. this.btnConnect.ForeColor = System.Drawing.Color.White;
  111. this.btnConnect.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold);
  112. this.btnConnect.Location = new System.Drawing.Point(15, 160);
  113. this.btnConnect.Size = new System.Drawing.Size(110, 35);
  114. this.btnConnect.Text = "连接";
  115. this.btnConnect.UseVisualStyleBackColor = false;
  116. this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click);
  117. // btnCancel
  118. this.btnCancel.Location = new System.Drawing.Point(135, 160);
  119. this.btnCancel.Size = new System.Drawing.Size(105, 35);
  120. this.btnCancel.Text = "取消";
  121. this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
  122. // ConnectionDialog
  123. this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
  124. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  125. this.ClientSize = new System.Drawing.Size(260, 210);
  126. this.Controls.Add(this.lblTitle);
  127. this.Controls.Add(this.rbSerial);
  128. this.Controls.Add(this.rbEthernet);
  129. this.Controls.Add(this.lblComPort);
  130. this.Controls.Add(this.cmbComPort);
  131. this.Controls.Add(this.lblBaudRate);
  132. this.Controls.Add(this.cmbBaudRate);
  133. this.Controls.Add(this.btnRefresh);
  134. this.Controls.Add(this.lblIpAddress);
  135. this.Controls.Add(this.txtIpAddress);
  136. this.Controls.Add(this.lblPort);
  137. this.Controls.Add(this.numPort);
  138. this.Controls.Add(this.btnConnect);
  139. this.Controls.Add(this.btnCancel);
  140. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
  141. this.MaximizeBox = false;
  142. this.MinimizeBox = false;
  143. this.Name = "ConnectionDialog";
  144. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
  145. this.Text = "连接设备";
  146. ((System.ComponentModel.ISupportInitialize)(this.numPort)).EndInit();
  147. this.ResumeLayout(false);
  148. this.PerformLayout();
  149. }
  150. }
  151. }