Пример #1
0
        /// <summary>
        /// Constructor for COM
        /// </summary>
        public SamsungMDC(string key, string name, ComPort port, ComPort.ComPortSpec spec, string id)
            : base(key, name)
        {
            Communication = new ComPortController(key + "-com", port, spec);
            //Communication.TextReceived += new EventHandler<GenericCommMethodReceiveTextArgs>(Communication_TextReceived);

            ID = id == null ? (byte)0x01 : Convert.ToByte(id, 16); // If id is null, set default value of 0x01, otherwise assign value passed in constructor
            Init();
        }
Пример #2
0
        /// <summary>
        /// Constructor for COM
        /// </summary>
        public AvocorDisplay(string key, string name, ComPort port, ComPort.ComPortSpec spec, string id)
            : base(key, name)
        {
            Communication = new ComPortController(key + "-com", port, spec);

            PortGather = new CommunicationGather(Communication, '\x0d');
            PortGather.IncludeDelimiter = true;
            PortGather.LineReceived    += new EventHandler <GenericCommMethodReceiveTextArgs>(PortGather_LineReceived);

            ID = id == null ? (byte)0x01 : Convert.ToByte(id, 16); // If id is null, set default value of 0x01, otherwise assign value passed in constructor
            Init();
        }
Пример #3
0
 /// <summary>
 /// Constructor for COM
 /// </summary>
 public PanasonicThDisplay(string key, string name, ComPort port, ComPort.ComPortSpec spec)
     : base(key, name)
 {
     Communication = new ComPortController(key + "-com", port, spec);
     Init();
 }