| | |
| | | txtSendMsg = new TextBox(); |
| | | grpSetting = new GroupBox(); |
| | | txtAddress = new TextBox(); |
| | | cmbVarType = new ComboBox(); |
| | | cmbType = new ComboBox(); |
| | | txtIP = new TextBox(); |
| | | txtPort = new TextBox(); |
| | | lblPort = new Label(); |
| | | lbVarType = new Label(); |
| | | cmbIP = new ComboBox(); |
| | | lblType = new Label(); |
| | | lblAddress = new Label(); |
| | |
| | | // |
| | | grpSetting.BackColor = Color.FromArgb(32, 41, 50); |
| | | grpSetting.Controls.Add(txtAddress); |
| | | grpSetting.Controls.Add(cmbVarType); |
| | | grpSetting.Controls.Add(cmbType); |
| | | grpSetting.Controls.Add(txtIP); |
| | | grpSetting.Controls.Add(txtPort); |
| | | grpSetting.Controls.Add(lblPort); |
| | | grpSetting.Controls.Add(lbVarType); |
| | | grpSetting.Controls.Add(cmbIP); |
| | | grpSetting.Controls.Add(lblType); |
| | | grpSetting.Controls.Add(lblAddress); |
| | |
| | | txtAddress.Size = new Size(124, 24); |
| | | txtAddress.TabIndex = 9; |
| | | txtAddress.TextChanged += txtAddress_TextChanged; |
| | | // |
| | | // cmbVarType |
| | | // |
| | | cmbVarType.DropDownStyle = ComboBoxStyle.DropDownList; |
| | | cmbVarType.FormattingEnabled = true; |
| | | cmbVarType.Location = new Point(533, 32); |
| | | cmbVarType.Margin = new Padding(4); |
| | | cmbVarType.Name = "cmbVarType"; |
| | | cmbVarType.Size = new Size(124, 26); |
| | | cmbVarType.TabIndex = 8; |
| | | cmbVarType.SelectedIndexChanged += cmbVarType_SelectedIndexChanged; |
| | | // |
| | | // cmbType |
| | | // |
| | |
| | | lblPort.Size = new Size(38, 18); |
| | | lblPort.TabIndex = 4; |
| | | lblPort.Text = "端口"; |
| | | // |
| | | // lbVarType |
| | | // |
| | | lbVarType.AutoSize = true; |
| | | lbVarType.Location = new Point(463, 35); |
| | | lbVarType.Margin = new Padding(4, 0, 4, 0); |
| | | lbVarType.Name = "lbVarType"; |
| | | lbVarType.Size = new Size(68, 18); |
| | | lbVarType.TabIndex = 0; |
| | | lbVarType.Text = "变量类型"; |
| | | // |
| | | // cmbIP |
| | | // |