| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- namespace APS7100TestTool.Forms
- {
- partial class ConnectionDialog
- {
- private System.ComponentModel.IContainer components = null;
- private System.Windows.Forms.Label lblTitle;
- private System.Windows.Forms.RadioButton rbSerial;
- private System.Windows.Forms.RadioButton rbEthernet;
- private System.Windows.Forms.Label lblComPort;
- private System.Windows.Forms.ComboBox cmbComPort;
- private System.Windows.Forms.Label lblBaudRate;
- private System.Windows.Forms.ComboBox cmbBaudRate;
- private System.Windows.Forms.Button btnRefresh;
- private System.Windows.Forms.Label lblIpAddress;
- private System.Windows.Forms.TextBox txtIpAddress;
- private System.Windows.Forms.Label lblPort;
- private System.Windows.Forms.NumericUpDown numPort;
- private System.Windows.Forms.Button btnConnect;
- private System.Windows.Forms.Button btnCancel;
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void InitializeComponent()
- {
- this.lblTitle = new System.Windows.Forms.Label();
- this.rbSerial = new System.Windows.Forms.RadioButton();
- this.rbEthernet = new System.Windows.Forms.RadioButton();
- this.lblComPort = new System.Windows.Forms.Label();
- this.cmbComPort = new System.Windows.Forms.ComboBox();
- this.lblBaudRate = new System.Windows.Forms.Label();
- this.cmbBaudRate = new System.Windows.Forms.ComboBox();
- this.btnRefresh = new System.Windows.Forms.Button();
- this.lblIpAddress = new System.Windows.Forms.Label();
- this.txtIpAddress = new System.Windows.Forms.TextBox();
- this.lblPort = new System.Windows.Forms.Label();
- this.numPort = new System.Windows.Forms.NumericUpDown();
- this.btnConnect = new System.Windows.Forms.Button();
- this.btnCancel = new System.Windows.Forms.Button();
- ((System.ComponentModel.ISupportInitialize)(this.numPort)).BeginInit();
- this.SuspendLayout();
- // lblTitle
- this.lblTitle.AutoSize = true;
- this.lblTitle.Font = new System.Drawing.Font("Microsoft YaHei UI", 11F, System.Drawing.FontStyle.Bold);
- this.lblTitle.Location = new System.Drawing.Point(12, 15);
- this.lblTitle.Text = "连接到设备";
- // rbSerial
- this.rbSerial.AutoSize = true;
- this.rbSerial.Checked = true;
- this.rbSerial.Location = new System.Drawing.Point(15, 50);
- this.rbSerial.TabStop = true;
- this.rbSerial.Text = "串口连接";
- this.rbSerial.CheckedChanged += new System.EventHandler(this.rbSerial_CheckedChanged);
- // rbEthernet
- this.rbEthernet.AutoSize = true;
- this.rbEthernet.Location = new System.Drawing.Point(110, 50);
- this.rbEthernet.Text = "网口连接";
- this.rbEthernet.CheckedChanged += new System.EventHandler(this.rbEthernet_CheckedChanged);
- // lblComPort
- this.lblComPort.AutoSize = true;
- this.lblComPort.Location = new System.Drawing.Point(15, 85);
- this.lblComPort.Text = "串口:";
- // cmbComPort
- this.cmbComPort.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.cmbComPort.Location = new System.Drawing.Point(70, 82);
- this.cmbComPort.Size = new System.Drawing.Size(100, 25);
- // btnRefresh
- this.btnRefresh.Location = new System.Drawing.Point(180, 80);
- this.btnRefresh.Size = new System.Drawing.Size(60, 27);
- this.btnRefresh.Text = "刷新";
- this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
- // lblBaudRate
- this.lblBaudRate.AutoSize = true;
- this.lblBaudRate.Location = new System.Drawing.Point(15, 120);
- this.lblBaudRate.Text = "波特率:";
- // cmbBaudRate
- this.cmbBaudRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.cmbBaudRate.Items.AddRange(new object[] { "9600", "19200", "38400", "57600", "115200" });
- this.cmbBaudRate.Location = new System.Drawing.Point(70, 117);
- this.cmbBaudRate.Size = new System.Drawing.Size(170, 25);
- this.cmbBaudRate.SelectedIndex = 0;
- // lblIpAddress
- this.lblIpAddress.AutoSize = true;
- this.lblIpAddress.Location = new System.Drawing.Point(15, 85);
- this.lblIpAddress.Text = "IP地址:";
- this.lblIpAddress.Visible = false;
- // txtIpAddress
- this.txtIpAddress.Location = new System.Drawing.Point(70, 82);
- this.txtIpAddress.Size = new System.Drawing.Size(170, 23);
- this.txtIpAddress.Text = "192.168.1.100";
- this.txtIpAddress.Visible = false;
- // lblPort
- this.lblPort.AutoSize = true;
- this.lblPort.Location = new System.Drawing.Point(15, 120);
- this.lblPort.Text = "端口:";
- this.lblPort.Visible = false;
- // numPort
- this.numPort.Location = new System.Drawing.Point(70, 117);
- this.numPort.Maximum = new decimal(new int[] { 65535, 0, 0, 0 });
- this.numPort.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
- this.numPort.Size = new System.Drawing.Size(170, 23);
- this.numPort.Value = new decimal(new int[] { 2268, 0, 0, 0 });
- this.numPort.Visible = false;
- // btnConnect
- this.btnConnect.BackColor = System.Drawing.Color.FromArgb(0, 120, 215);
- this.btnConnect.ForeColor = System.Drawing.Color.White;
- this.btnConnect.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold);
- this.btnConnect.Location = new System.Drawing.Point(15, 160);
- this.btnConnect.Size = new System.Drawing.Size(110, 35);
- this.btnConnect.Text = "连接";
- this.btnConnect.UseVisualStyleBackColor = false;
- this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click);
- // btnCancel
- this.btnCancel.Location = new System.Drawing.Point(135, 160);
- this.btnCancel.Size = new System.Drawing.Size(105, 35);
- this.btnCancel.Text = "取消";
- this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
- // ConnectionDialog
- this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(260, 210);
- this.Controls.Add(this.lblTitle);
- this.Controls.Add(this.rbSerial);
- this.Controls.Add(this.rbEthernet);
- this.Controls.Add(this.lblComPort);
- this.Controls.Add(this.cmbComPort);
- this.Controls.Add(this.lblBaudRate);
- this.Controls.Add(this.cmbBaudRate);
- this.Controls.Add(this.btnRefresh);
- this.Controls.Add(this.lblIpAddress);
- this.Controls.Add(this.txtIpAddress);
- this.Controls.Add(this.lblPort);
- this.Controls.Add(this.numPort);
- this.Controls.Add(this.btnConnect);
- this.Controls.Add(this.btnCancel);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "ConnectionDialog";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
- this.Text = "连接设备";
- ((System.ComponentModel.ISupportInitialize)(this.numPort)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
- }
- }
- }
|