protected virtual void OnBlocksReceived(ObjectBlocksEventArgs e) { EventHandler <ObjectBlocksEventArgs> handler = BlocksReceived; if (handler != null) { handler(this, e); } }
private void Controller_BlocksReceived(object sender, ObjectBlocksEventArgs e) { if (showCameraDebug) { lock (cameraLock) { foreach (ObjectBlock block in e.Blocks) { updateUI(block); } } } }
protected virtual void OnBlocksReceived(ObjectBlocksEventArgs e) { EventHandler<ObjectBlocksEventArgs> handler = BlocksReceived; if (handler != null) { handler(this, e); } }
private void Controller_OnNewBlocksDetected(object source, ObjectBlocksEventArgs e) { var blocks = e.Blocks; if (blocks != null && blocks.Length > 0) { var controller = source as ObjectTrackingController; controller.motorDriver.Buzz(500f, 500); } }