Esempio n. 1
0
        public CControlCentral()
        {
            mControlBoard = new CControlBoard();
            mBoardInfo    = new CControlBoardInfo();

            queSendingCommands = new Queue <CCommandQueueItem>();
            bgw_RS232          = new BackgroundWorker();
            bgw_RS232.WorkerReportsProgress      = true;
            bgw_RS232.WorkerSupportsCancellation = true;
            bgw_RS232.DoWork          += bgw_DoWork;
            bgw_RS232.ProgressChanged += bgw_ProgressChanged;
            bgw_RS232.RunWorkerAsync();
        }
        public CControlCentral()
        {
            mControlBoard = new CControlBoard();
            mBoardInfo = new CControlBoardInfo();

            queSendingCommands = new Queue<CCommandQueueItem>();
            bgw_RS232 = new BackgroundWorker();
            bgw_RS232.WorkerReportsProgress = true;
            bgw_RS232.WorkerSupportsCancellation = true;
            bgw_RS232.DoWork += bgw_DoWork;
            bgw_RS232.ProgressChanged += bgw_ProgressChanged;
            bgw_RS232.RunWorkerAsync();
        }