public CommMainCtrl(Configuration tmp) { config = new Configuration(tmp); myCommProtocol = new CommProtocol(); rxFIFO = new Queue <byte>(); switch (config.CommMode) { case CommunicationMode.Serial: mySerialPort = new SerialPortResource(); break; case CommunicationMode.LocalNet: myTCPClient = new TCPClientResource(); break; } debugMessageLog = new Queue <string>(); IsOpen = false; }
public SubViewControl(Components tmp) { myComponents = tmp; myCommProtocol = new CommProtocol(); InitializeComponent(); dataGridView.AutoGenerateColumns = false; }