private static void Microsoft_Kinect_Face_FaceFrameArrivedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative) { List <RootSystem.EventHandler <Microsoft.Kinect.Face.FaceFrameArrivedEventArgs> > callbackList = null; Microsoft_Kinect_Face_FaceFrameArrivedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList); lock (callbackList) { var objThis = Helper.NativeObjectCache.GetObject <FaceFrameReader>(pNative); var args = new Microsoft.Kinect.Face.FaceFrameArrivedEventArgs(result); foreach (var func in callbackList) { Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } }); } } }
private static void Microsoft_Kinect_Face_FaceFrameArrivedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative) { List<RootSystem.EventHandler<Microsoft.Kinect.Face.FaceFrameArrivedEventArgs>> callbackList = null; Microsoft_Kinect_Face_FaceFrameArrivedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList); lock(callbackList) { var objThis = Helper.NativeObjectCache.GetObject<FaceFrameReader>(pNative); var args = new Microsoft.Kinect.Face.FaceFrameArrivedEventArgs(result); foreach(var func in callbackList) { Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } }); } } }
private void Reader_FaceFrameArrived(object sender, Microsoft.Kinect.Face.FaceFrameArrivedEventArgs e) { parent.faceFrameHandler.Reader_FaceFrameArrived(sender, e); }