| | |
| | | using System; |
| | | using LB_VisionProcesses.Communicators.SiemensS7; |
| | | using LB_VisionProcesses.Communicators.TCom; |
| | | using RJCP.IO.Ports; |
| | | using System; |
| | | using System.Collections.Concurrent; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using LB_VisionProcesses.Communicators.TCom; |
| | | using RJCP.IO.Ports; |
| | | |
| | | namespace LB_VisionProcesses.Communicators |
| | | { |
| | |
| | | txtIP.Text = communicator.CommunicatorConnections["地址"].ToString(); |
| | | txtPort.Text = communicator.CommunicatorConnections["端口"].ToString(); |
| | | } |
| | | else if (communicator is SiemensLBS7) |
| | | { |
| | | btnSend.Enabled = communicator.bConnected; |
| | | btnRuleSend.Enabled = communicator.bConnected; |
| | | |
| | | cmbIP.Visible = false; |
| | | txtIP.Visible = true; |
| | | |
| | | lblIP.Text = "IP"; |
| | | lblIP.Text = "槽"; |
| | | |
| | | txtIP.Text = communicator.CommunicatorConnections["地址"].ToString(); |
| | | txtPort.Text = communicator.CommunicatorConnections["槽"].ToString(); |
| | | } |
| | | else |
| | | { |
| | | btnSend.Enabled = communicator.bConnected; |