Exemplo n.º 1
0
        //, ref bool flag_A)
        public BO_serie(SousMarin cs_parent, int cs_baudrate, int cs_nbBits, string cs_parite, string cs_stopBits, int cs_readBufferSize, int cs_writeBufferSize, int cs_readTimeOut, int cs_writeTimeOut)
        {
            parent = cs_parent;

            Console = new FormConsole(parent);

            dataSerie = new String("".ToCharArray());
            baudrate = cs_baudrate;
            nbBits = cs_nbBits;
            parite = cs_parite;
            stopBits = cs_stopBits;
            readBufferSize = cs_readBufferSize;
            readTimeOut = cs_readTimeOut;
            writeBufferSize = cs_writeBufferSize;
            writeTimeOut = cs_writeTimeOut;

            serialPort = new SerialPort();
            tableau_de_donnee = new BO_tableau();

            DemandePortCom = new FormPortCom(this);
            DemandePortCom.ShowDialog();
        }
Exemplo n.º 2
0
        public BO_serie(SousMarin cs_parent, int cs_baudrate, int cs_nbBits, string cs_parite, string cs_stopBits, int cs_readBufferSize, int cs_writeBufferSize, int cs_readTimeOut, int cs_writeTimeOut)//, ref bool flag_A)
        {
            parent = cs_parent;

            Console = new FormConsole(parent);

            dataSerie       = new String("".ToCharArray());
            baudrate        = cs_baudrate;
            nbBits          = cs_nbBits;
            parite          = cs_parite;
            stopBits        = cs_stopBits;
            readBufferSize  = cs_readBufferSize;
            readTimeOut     = cs_readTimeOut;
            writeBufferSize = cs_writeBufferSize;
            writeTimeOut    = cs_writeTimeOut;

            serialPort        = new SerialPort();
            tableau_de_donnee = new BO_tableau();

            DemandePortCom = new FormPortCom(this);
            DemandePortCom.ShowDialog();
        }