Beispiel #1
0
        private static void Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_Handler(IntPtr result, IntPtr pNative)
        {
            List <EventHandler <CoordinateMappingChangedEventArgs> > list = null;

            CoordinateMapper.Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out list);
            object obj = list;

            lock (obj)
            {
                CoordinateMapper objThis = NativeObjectCache.GetObject <CoordinateMapper>(pNative);
                CoordinateMappingChangedEventArgs args = new CoordinateMappingChangedEventArgs(result);
                using (List <EventHandler <CoordinateMappingChangedEventArgs> > .Enumerator enumerator = list.GetEnumerator())
                {
                    while (enumerator.MoveNext())
                    {
                        EventHandler <CoordinateMappingChangedEventArgs> func = enumerator.Current;
                        EventPump.Instance.Enqueue(delegate
                        {
                            try
                            {
                                func(objThis, args);
                            }
                            catch
                            {
                            }
                        });
                    }
                }
            }
        }
        private static void Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result,
                                                                                              RootSystem.IntPtr pNative)
        {
            List <RootSystem.EventHandler <CoordinateMappingChangedEventArgs> > callbackList = null;

            Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
            lock (callbackList)
            {
                var objThis = NativeObjectCache.GetObject <CoordinateMapper>(pNative);
                var args    = new CoordinateMappingChangedEventArgs(result);
                foreach (var func in callbackList)
                {
                    EventPump.Instance.Enqueue(() =>
                    {
                        try
                        {
                            func(objThis, args);
                        }
                        catch
                        {
                        }
                    });
                }
            }
        }
Beispiel #3
0
 // Token: 0x06002C19 RID: 11289 RVA: 0x000DC70C File Offset: 0x000DAB0C
 private void Dispose(bool disposing)
 {
     if (this._pNative == IntPtr.Zero)
     {
         return;
     }
     this.__EventCleanup();
     NativeObjectCache.RemoveObject <CoordinateMappingChangedEventArgs>(this._pNative);
     CoordinateMappingChangedEventArgs.Windows_Kinect_CoordinateMappingChangedEventArgs_ReleaseObject(ref this._pNative);
     this._pNative = IntPtr.Zero;
 }
Beispiel #4
0
 // Token: 0x06002C14 RID: 11284 RVA: 0x000DC6BA File Offset: 0x000DAABA
 internal CoordinateMappingChangedEventArgs(IntPtr pNative)
 {
     this._pNative = pNative;
     CoordinateMappingChangedEventArgs.Windows_Kinect_CoordinateMappingChangedEventArgs_AddRefObject(ref this._pNative);
 }