Manager for serial port data
Inheritance: IDisposable
示例#1
0
        public frmMain()
        {
            InitializeComponent();
            _spManager = new SerialPortManager();
            _spManager.NewSerialDataRecieved += new EventHandler<SerialDataEventArgs>(_spManager_NewSerialDataRecieved);

            var di = new DirectoryInfo("F:/OpenCV/Raw/");
            var lastFileName = di.GetFiles()
             .OrderByDescending(f => f.Name)
             .First();

            IRSensorCount = ImagesDB.GetImageIDFromFileName(lastFileName.Name);
        }
示例#2
0
        public frmMain()
        {
            InitializeComponent();
            _spManager = new SerialPortManager();
            _spManager.NewSerialDataRecieved += new EventHandler <SerialDataEventArgs>(_spManager_NewSerialDataRecieved);

            var di           = new DirectoryInfo("F:/OpenCV/Raw/");
            var lastFileName = di.GetFiles()
                               .OrderByDescending(f => f.Name)
                               .First();

            IRSensorCount = ImagesDB.GetImageIDFromFileName(lastFileName.Name);
        }