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 { } });
                }
            }
        }
예제 #2
0
 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 { } });
         }
     }
 }
예제 #3
0
 private void Reader_FaceFrameArrived(object sender, Microsoft.Kinect.Face.FaceFrameArrivedEventArgs e)
 {
     parent.faceFrameHandler.Reader_FaceFrameArrived(sender, e);
 }