示例#1
0
        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;
        }
示例#2
0
		public SubViewControl(Components tmp)
		{
			myComponents = tmp;
			myCommProtocol = new CommProtocol();

			InitializeComponent();

			dataGridView.AutoGenerateColumns = false;
		}