Exemple #1
0
        //protected AsyncOperation AsyncOp;
        public Rs585DevicesProcessor(SerialPort comPort)
        {
            _ComPort = comPort;

            _SerialPortProcessor = new SerialPortProcessor(_ComPort, 1);

            //AsyncOp = AsyncOperationManager.CreateOperation(null);
        }
        /// <summary>
        /// MainWindowのオブジェクト作成後に行う初期化処理
        /// </summary>
        public void Init()
        {
            _usb = new SerialPortProcessor();

            _usb.OnSpecifiedDeviceRemoved += new EventHandler(this.usb_OnSpecifiedDeviceRemoved);
            _usb.OnDataSend               += new EventHandler(this.usb_OnDataSend);
            _usb.OnDataRecieved           += new OnDataRecievedEventHandler(this.usb_OnDataRecieved);
            _usb.OnSpecifiedDeviceArrived += new EventHandler(this.usb_OnSpecifiedDeviceArrived);

            SendCmd = null;
        }