public void StartAutoMotionDetection(int imageSequenceNumber, string storagePath, MotionDetectedHandler motionDetectionHandler) { if (_autoMotionThread != null) { throw new ApplicationException("_autoMotionThread"); } if (motionDetectionHandler == null) { throw new ApplicationException("motionDetectionHandler"); } _autoMotionStop = false; _autoMotionImageSequenceNumber = imageSequenceNumber; _autoMotionStoragePath = storagePath; _autoMotionDetectionHandler = motionDetectionHandler; _autoMotionThread = new Thread(AutoMotionDetectionThread); _autoMotionThread.Start(); }
public void StartAutoMotionDetection(int imageSequenceNumber, string storagePath, MotionDetectedHandler motionDetectionHandler) { if (_autoMotionThread != null) throw new ApplicationException("_autoMotionThread"); if (motionDetectionHandler == null) throw new ApplicationException("motionDetectionHandler"); _autoMotionStop = false; _autoMotionImageSequenceNumber = imageSequenceNumber; _autoMotionStoragePath = storagePath; _autoMotionDetectionHandler = motionDetectionHandler; _autoMotionThread = new Thread(AutoMotionDetectionThread); _autoMotionThread.Start(); }