| | |
| | | btnSend = new Button(); |
| | | grpTest = new GroupBox(); |
| | | lblCom = new Label(); |
| | | txtAddress = new TextBox(); |
| | | ckbRuleCheck = new CheckBox(); |
| | | cmbCom = new ComboBox(); |
| | | cmbType = new ComboBox(); |
| | | lblType = new Label(); |
| | | btnRun = new Button(); |
| | | lblAddress = new Label(); |
| | | lblMsg = new Label(); |
| | | txtMsg = new TextBox(); |
| | | btnRuleSend = new Button(); |
| | | label6 = new Label(); |
| | | themeForm1 = new ReaLTaiizor.Forms.ThemeForm(); |
| | | controlBox1 = new ReaLTaiizor.Controls.ControlBox(); |
| | | lblAddress = new Label(); |
| | | txtAddress = new TextBox(); |
| | | grpSetting.SuspendLayout(); |
| | | grpReceive.SuspendLayout(); |
| | | grpTest.SuspendLayout(); |
| | |
| | | grpSetting.Controls.Add(cmbIP); |
| | | grpSetting.Controls.Add(lblIP); |
| | | grpSetting.ForeColor = SystemColors.Control; |
| | | grpSetting.Location = new Point(18, 74); |
| | | grpSetting.Location = new Point(22, 92); |
| | | grpSetting.Margin = new Padding(4); |
| | | grpSetting.Name = "grpSetting"; |
| | | grpSetting.Size = new Size(200, 210); |
| | | grpSetting.Padding = new Padding(4); |
| | | grpSetting.Size = new Size(250, 262); |
| | | grpSetting.TabIndex = 0; |
| | | grpSetting.TabStop = false; |
| | | grpSetting.Text = "通讯配置"; |
| | | // |
| | | // txtIP |
| | | // |
| | | txtIP.Location = new Point(83, 32); |
| | | txtIP.Location = new Point(104, 40); |
| | | txtIP.Margin = new Padding(4); |
| | | txtIP.Name = "txtIP"; |
| | | txtIP.Size = new Size(100, 23); |
| | | txtIP.Size = new Size(124, 27); |
| | | txtIP.TabIndex = 7; |
| | | // |
| | | // txtPort |
| | | // |
| | | txtPort.Location = new Point(83, 70); |
| | | txtPort.Location = new Point(104, 88); |
| | | txtPort.Margin = new Padding(4); |
| | | txtPort.Name = "txtPort"; |
| | | txtPort.Size = new Size(100, 23); |
| | | txtPort.Size = new Size(124, 27); |
| | | txtPort.TabIndex = 6; |
| | | // |
| | | // lblPort |
| | | // |
| | | lblPort.AutoSize = true; |
| | | lblPort.Location = new Point(17, 73); |
| | | lblPort.Location = new Point(21, 91); |
| | | lblPort.Margin = new Padding(4, 0, 4, 0); |
| | | lblPort.Name = "lblPort"; |
| | | lblPort.Size = new Size(32, 17); |
| | | lblPort.Size = new Size(39, 20); |
| | | lblPort.TabIndex = 4; |
| | | lblPort.Text = "端口"; |
| | | // |
| | | // btnDisconnect |
| | | // |
| | | btnDisconnect.ForeColor = SystemColors.Control; |
| | | btnDisconnect.Location = new Point(118, 109); |
| | | btnDisconnect.Location = new Point(148, 136); |
| | | btnDisconnect.Margin = new Padding(4); |
| | | btnDisconnect.Name = "btnDisconnect"; |
| | | btnDisconnect.Size = new Size(75, 23); |
| | | btnDisconnect.Size = new Size(94, 29); |
| | | btnDisconnect.TabIndex = 3; |
| | | btnDisconnect.Text = "断开"; |
| | | btnDisconnect.UseVisualStyleBackColor = true; |
| | |
| | | // btnConnect |
| | | // |
| | | btnConnect.ForeColor = SystemColors.Control; |
| | | btnConnect.Location = new Point(14, 109); |
| | | btnConnect.Location = new Point(18, 136); |
| | | btnConnect.Margin = new Padding(4); |
| | | btnConnect.Name = "btnConnect"; |
| | | btnConnect.Size = new Size(75, 23); |
| | | btnConnect.Size = new Size(94, 29); |
| | | btnConnect.TabIndex = 2; |
| | | btnConnect.Text = "连接"; |
| | | btnConnect.UseVisualStyleBackColor = true; |
| | |
| | | // cmbIP |
| | | // |
| | | cmbIP.FormattingEnabled = true; |
| | | cmbIP.Location = new Point(83, 31); |
| | | cmbIP.Location = new Point(104, 39); |
| | | cmbIP.Margin = new Padding(4); |
| | | cmbIP.Name = "cmbIP"; |
| | | cmbIP.Size = new Size(100, 25); |
| | | cmbIP.Size = new Size(124, 28); |
| | | cmbIP.TabIndex = 1; |
| | | cmbIP.Click += cmbIP_Click; |
| | | cmbIP.MouseClick += cmbIP_MouseClick; |
| | |
| | | // lblIP |
| | | // |
| | | lblIP.AutoSize = true; |
| | | lblIP.Location = new Point(17, 36); |
| | | lblIP.Location = new Point(21, 45); |
| | | lblIP.Margin = new Padding(4, 0, 4, 0); |
| | | lblIP.Name = "lblIP"; |
| | | lblIP.Size = new Size(32, 17); |
| | | lblIP.Size = new Size(39, 20); |
| | | lblIP.TabIndex = 0; |
| | | lblIP.Text = "地址"; |
| | | // |
| | | // lblDataType |
| | | // |
| | | lblDataType.AutoSize = true; |
| | | lblDataType.Location = new Point(206, 145); |
| | | lblDataType.Margin = new Padding(4, 0, 4, 0); |
| | | lblDataType.Name = "lblDataType"; |
| | | lblDataType.Size = new Size(39, 20); |
| | | lblDataType.TabIndex = 8; |
| | | lblDataType.Text = "类型"; |
| | | // |
| | | // cmbDataType |
| | | // |
| | | cmbDataType.FormattingEnabled = true; |
| | | cmbDataType.Location = new Point(255, 140); |
| | | cmbDataType.Margin = new Padding(4); |
| | | cmbDataType.Name = "cmbDataType"; |
| | | cmbDataType.Size = new Size(94, 28); |
| | | cmbDataType.TabIndex = 9; |
| | | // |
| | | // grpReceive |
| | | // |
| | | grpReceive.Controls.Add(txtReceiveMsg); |
| | | grpReceive.ForeColor = SystemColors.Control; |
| | | grpReceive.Location = new Point(18, 311); |
| | | grpReceive.Location = new Point(22, 389); |
| | | grpReceive.Margin = new Padding(4); |
| | | grpReceive.Name = "grpReceive"; |
| | | grpReceive.Size = new Size(543, 174); |
| | | grpReceive.Padding = new Padding(4); |
| | | grpReceive.Size = new Size(679, 218); |
| | | grpReceive.TabIndex = 5; |
| | | grpReceive.TabStop = false; |
| | | grpReceive.Text = "通讯记录"; |
| | |
| | | // txtReceiveMsg |
| | | // |
| | | txtReceiveMsg.Dock = DockStyle.Fill; |
| | | txtReceiveMsg.Location = new Point(3, 19); |
| | | txtReceiveMsg.Location = new Point(4, 24); |
| | | txtReceiveMsg.Margin = new Padding(4); |
| | | txtReceiveMsg.Multiline = true; |
| | | txtReceiveMsg.Name = "txtReceiveMsg"; |
| | | txtReceiveMsg.ReadOnly = true; |
| | | txtReceiveMsg.ScrollBars = ScrollBars.Both; |
| | | txtReceiveMsg.Size = new Size(537, 152); |
| | | txtReceiveMsg.Size = new Size(671, 190); |
| | | txtReceiveMsg.TabIndex = 0; |
| | | // |
| | | // txtSendMsg |
| | | // |
| | | txtSendMsg.ForeColor = SystemColors.WindowText; |
| | | txtSendMsg.Location = new Point(18, 249); |
| | | txtSendMsg.Location = new Point(26, 311); |
| | | txtSendMsg.Margin = new Padding(4); |
| | | txtSendMsg.Name = "txtSendMsg"; |
| | | txtSendMsg.Size = new Size(543, 23); |
| | | txtSendMsg.Size = new Size(238, 27); |
| | | txtSendMsg.TabIndex = 10; |
| | | // |
| | | // btnSend |
| | | // |
| | | btnSend.ForeColor = SystemColors.WindowText; |
| | | btnSend.Location = new Point(18, 282); |
| | | btnSend.Location = new Point(22, 352); |
| | | btnSend.Margin = new Padding(4); |
| | | btnSend.Name = "btnSend"; |
| | | btnSend.Size = new Size(75, 23); |
| | | btnSend.Size = new Size(94, 29); |
| | | btnSend.TabIndex = 11; |
| | | btnSend.Text = "发送"; |
| | | btnSend.UseVisualStyleBackColor = true; |
| | |
| | | grpTest.Controls.Add(lblDataType); |
| | | grpTest.Controls.Add(cmbDataType); |
| | | grpTest.ForeColor = SystemColors.Control; |
| | | grpTest.Location = new Point(241, 74); |
| | | grpTest.Location = new Point(301, 92); |
| | | grpTest.Margin = new Padding(4); |
| | | grpTest.Name = "grpTest"; |
| | | grpTest.Size = new Size(320, 210); |
| | | grpTest.Padding = new Padding(4); |
| | | grpTest.Size = new Size(400, 262); |
| | | grpTest.TabIndex = 12; |
| | | grpTest.TabStop = false; |
| | | grpTest.Text = "通讯测试"; |
| | | // |
| | | // lblDataType |
| | | // |
| | | lblDataType.AutoSize = true; |
| | | lblDataType.Location = new Point(160, 115); |
| | | lblDataType.Name = "lblDataType"; |
| | | lblDataType.Size = new Size(32, 17); |
| | | lblDataType.TabIndex = 8; |
| | | lblDataType.Text = "类型"; |
| | | // |
| | | // cmbDataType |
| | | // |
| | | cmbDataType.FormattingEnabled = true; |
| | | cmbDataType.Location = new Point(200, 112); |
| | | cmbDataType.Name = "cmbDataType"; |
| | | cmbDataType.Size = new Size(94, 25); |
| | | cmbDataType.TabIndex = 9; |
| | | // |
| | | // lblCom |
| | | // |
| | | lblCom.AutoSize = true; |
| | | lblCom.Location = new Point(165, 40); |
| | | lblCom.Location = new Point(206, 50); |
| | | lblCom.Margin = new Padding(4, 0, 4, 0); |
| | | lblCom.Name = "lblCom"; |
| | | lblCom.Size = new Size(32, 17); |
| | | lblCom.Size = new Size(39, 20); |
| | | lblCom.TabIndex = 9; |
| | | lblCom.Text = "通讯"; |
| | | // |
| | | // txtAddress |
| | | // |
| | | txtAddress.Location = new Point(74, 140); |
| | | txtAddress.Margin = new Padding(4); |
| | | txtAddress.Name = "txtAddress"; |
| | | txtAddress.ReadOnly = true; |
| | | txtAddress.Size = new Size(116, 27); |
| | | txtAddress.TabIndex = 6; |
| | | // |
| | | // ckbRuleCheck |
| | | // |
| | | ckbRuleCheck.AutoSize = true; |
| | | ckbRuleCheck.Location = new Point(55, 173); |
| | | ckbRuleCheck.Location = new Point(69, 216); |
| | | ckbRuleCheck.Margin = new Padding(4); |
| | | ckbRuleCheck.Name = "ckbRuleCheck"; |
| | | ckbRuleCheck.Size = new Size(99, 21); |
| | | ckbRuleCheck.Size = new Size(121, 24); |
| | | ckbRuleCheck.TabIndex = 6; |
| | | ckbRuleCheck.Text = "是否规则校验"; |
| | | ckbRuleCheck.UseVisualStyleBackColor = true; |
| | |
| | | // cmbCom |
| | | // |
| | | cmbCom.FormattingEnabled = true; |
| | | cmbCom.Location = new Point(204, 35); |
| | | cmbCom.Location = new Point(255, 44); |
| | | cmbCom.Margin = new Padding(4); |
| | | cmbCom.Name = "cmbCom"; |
| | | cmbCom.Size = new Size(100, 25); |
| | | cmbCom.Size = new Size(124, 28); |
| | | cmbCom.TabIndex = 8; |
| | | cmbCom.SelectedIndexChanged += cmbCom_SelectedIndexChanged; |
| | | // |
| | | // cmbType |
| | | // |
| | | cmbType.FormattingEnabled = true; |
| | | cmbType.Location = new Point(59, 36); |
| | | cmbType.Location = new Point(74, 45); |
| | | cmbType.Margin = new Padding(4); |
| | | cmbType.Name = "cmbType"; |
| | | cmbType.Size = new Size(94, 25); |
| | | cmbType.Size = new Size(116, 28); |
| | | cmbType.TabIndex = 5; |
| | | // |
| | | // lblType |
| | | // |
| | | lblType.AutoSize = true; |
| | | lblType.Location = new Point(21, 39); |
| | | lblType.Location = new Point(26, 49); |
| | | lblType.Margin = new Padding(4, 0, 4, 0); |
| | | lblType.Name = "lblType"; |
| | | lblType.Size = new Size(32, 17); |
| | | lblType.Size = new Size(39, 20); |
| | | lblType.TabIndex = 4; |
| | | lblType.Text = "类型"; |
| | | // |
| | | // btnRun |
| | | // |
| | | btnRun.ForeColor = SystemColors.WindowText; |
| | | btnRun.Location = new Point(215, 168); |
| | | btnRun.Location = new Point(269, 210); |
| | | btnRun.Margin = new Padding(4); |
| | | btnRun.Name = "btnRun"; |
| | | btnRun.Size = new Size(75, 23); |
| | | btnRun.Size = new Size(94, 29); |
| | | btnRun.TabIndex = 3; |
| | | btnRun.Text = "运行测试"; |
| | | btnRun.UseVisualStyleBackColor = true; |
| | | btnRun.Click += btnRun_Click; |
| | | // |
| | | // lblAddress |
| | | // |
| | | lblAddress.AutoSize = true; |
| | | lblAddress.Location = new Point(25, 144); |
| | | lblAddress.Margin = new Padding(4, 0, 4, 0); |
| | | lblAddress.Name = "lblAddress"; |
| | | lblAddress.Size = new Size(39, 20); |
| | | lblAddress.TabIndex = 0; |
| | | lblAddress.Text = "地址"; |
| | | // |
| | | // lblMsg |
| | | // |
| | | lblMsg.AutoSize = true; |
| | | lblMsg.Location = new Point(20, 78); |
| | | lblMsg.Location = new Point(25, 98); |
| | | lblMsg.Margin = new Padding(4, 0, 4, 0); |
| | | lblMsg.Name = "lblMsg"; |
| | | lblMsg.Size = new Size(32, 17); |
| | | lblMsg.Size = new Size(39, 20); |
| | | lblMsg.TabIndex = 1; |
| | | lblMsg.Text = "消息"; |
| | | // |
| | | // txtMsg |
| | | // |
| | | txtMsg.Location = new Point(59, 76); |
| | | txtMsg.Location = new Point(74, 95); |
| | | txtMsg.Margin = new Padding(4); |
| | | txtMsg.Name = "txtMsg"; |
| | | txtMsg.ReadOnly = true; |
| | | txtMsg.Size = new Size(245, 23); |
| | | txtMsg.Size = new Size(305, 27); |
| | | txtMsg.TabIndex = 0; |
| | | // |
| | | // btnRuleSend |
| | | // |
| | | btnRuleSend.ForeColor = SystemColors.WindowText; |
| | | btnRuleSend.Location = new Point(118, 282); |
| | | btnRuleSend.Location = new Point(148, 352); |
| | | btnRuleSend.Margin = new Padding(4); |
| | | btnRuleSend.Name = "btnRuleSend"; |
| | | btnRuleSend.Size = new Size(75, 23); |
| | | btnRuleSend.Size = new Size(94, 29); |
| | | btnRuleSend.TabIndex = 13; |
| | | btnRuleSend.Text = "校验发送"; |
| | | btnRuleSend.UseVisualStyleBackColor = true; |
| | |
| | | // |
| | | label6.AutoSize = true; |
| | | label6.ForeColor = SystemColors.Control; |
| | | label6.Location = new Point(18, 223); |
| | | label6.Location = new Point(22, 279); |
| | | label6.Margin = new Padding(4, 0, 4, 0); |
| | | label6.Name = "label6"; |
| | | label6.Size = new Size(56, 17); |
| | | label6.Size = new Size(69, 20); |
| | | label6.TabIndex = 9; |
| | | label6.Text = "发送信息"; |
| | | // |
| | |
| | | themeForm1.Font = new Font("Microsoft Sans Serif", 9F); |
| | | themeForm1.Image = (Image)resources.GetObject("themeForm1.Image"); |
| | | themeForm1.Location = new Point(0, 0); |
| | | themeForm1.Margin = new Padding(4); |
| | | themeForm1.Name = "themeForm1"; |
| | | themeForm1.Padding = new Padding(10, 70, 10, 9); |
| | | themeForm1.Padding = new Padding(12, 88, 12, 11); |
| | | themeForm1.RoundCorners = true; |
| | | themeForm1.Sizable = true; |
| | | themeForm1.Size = new Size(581, 496); |
| | | themeForm1.Size = new Size(726, 620); |
| | | themeForm1.SmartBounds = true; |
| | | themeForm1.StartPosition = FormStartPosition.WindowsDefaultLocation; |
| | | themeForm1.TabIndex = 14; |
| | |
| | | controlBox1.EnableMaximizeButton = false; |
| | | controlBox1.EnableMinimizeButton = false; |
| | | controlBox1.ForeColor = Color.FromArgb(155, 155, 155); |
| | | controlBox1.Location = new Point(481, 18); |
| | | controlBox1.Location = new Point(601, 18); |
| | | controlBox1.Margin = new Padding(4); |
| | | controlBox1.MaximizeHoverColor = Color.FromArgb(74, 74, 74); |
| | | controlBox1.MinimizeHoverColor = Color.FromArgb(63, 63, 65); |
| | | controlBox1.Name = "controlBox1"; |
| | |
| | | controlBox1.TabIndex = 0; |
| | | controlBox1.Text = "controlBox1"; |
| | | // |
| | | // lblAddress |
| | | // |
| | | lblAddress.AutoSize = true; |
| | | lblAddress.Location = new Point(20, 115); |
| | | lblAddress.Name = "lblAddress"; |
| | | lblAddress.Size = new Size(32, 17); |
| | | lblAddress.TabIndex = 0; |
| | | lblAddress.Text = "地址"; |
| | | // |
| | | // txtAddress |
| | | // |
| | | txtAddress.Location = new Point(59, 112); |
| | | txtAddress.Name = "txtAddress"; |
| | | txtAddress.ReadOnly = true; |
| | | txtAddress.Size = new Size(94, 23); |
| | | txtAddress.TabIndex = 6; |
| | | // |
| | | // CommunicatorForm |
| | | // |
| | | AutoScaleDimensions = new SizeF(96F, 96F); |
| | | AutoScaleDimensions = new SizeF(120F, 120F); |
| | | AutoScaleMode = AutoScaleMode.Dpi; |
| | | ClientSize = new Size(581, 496); |
| | | ClientSize = new Size(726, 620); |
| | | Controls.Add(btnRuleSend); |
| | | Controls.Add(grpTest); |
| | | Controls.Add(btnSend); |
| | |
| | | Controls.Add(grpSetting); |
| | | Controls.Add(themeForm1); |
| | | FormBorderStyle = FormBorderStyle.None; |
| | | MinimumSize = new Size(261, 61); |
| | | Margin = new Padding(4); |
| | | MinimumSize = new Size(326, 76); |
| | | Name = "CommunicatorForm"; |
| | | Text = "通讯测试"; |
| | | TransparencyKey = Color.Fuchsia; |