public SeriPort(string portName, int BaundRate, byte bits)
 {
     this.State        = 1;
     this.myPort       = new SerialPort(portName, BaundRate, Parity.None, bits, StopBits.One);
     this.log          = LogManager.GetCurrentClassLogger();
     this.allMessage   = AllMessage.getObject();
     this.rootMessages = new RootMessages();
 }
Example #2
0
        public static AllMessage getObject()
        {
            if (SingleAllMessage == null)
            {
                SingleAllMessage = new AllMessage();
            }

            return(SingleAllMessage);
        }