示例#1
0
 void OpenNI_onDeviceConnectionStateChanged(DeviceInfo Device)
 {
     this.BeginInvoke(new MethodInvoker(delegate()
     {
         UpdateDevicesList();
     }));
 }
示例#2
0
        public static DeviceInfo[] EnumerateDevices()
        {
            WrapperArray csa = OpenNI_enumerateDevices();
            IntPtr[] array = new IntPtr[csa.Size];
            Marshal.Copy(csa.Data, array, 0, csa.Size);
            DeviceInfo[] arrayObjects = new DeviceInfo[csa.Size];
            for (int i = 0; i < csa.Size; i++)
            {
                arrayObjects[i] = new DeviceInfo(array[i]);
            }

            OpenNI_destroyDevicesArray(csa);
            return arrayObjects;
        }
示例#3
0
 private void OpenNiOnDeviceConnectionStateChanged(DeviceInfo device)
 {
     this.BeginInvoke(new MethodInvoker(this.UpdateDevicesList));
 }
示例#4
0
 private void OpenNI_onDeviceConnectionStateChanged(DeviceInfo Device)
 {
     this.BeginInvoke((Action)this.UpdateDevicesList);
 }
示例#5
0
 private static void OpenNiOnDeviceDisconnected(DeviceInfo device)
 {
     Console.WriteLine(device.Name + " Disconnected ...");
 }
示例#6
0
 void OpenNI_onDeviceStateChanged(DeviceInfo Device, OpenNI.DeviceState state)
 {
     this.BeginInvoke((Action)delegate
     {
         UpdateDevicesList();
     });
 }
示例#7
0
 private void OpenNiOnDeviceStateChanged(DeviceInfo device, OpenNI.DeviceState state)
 {
     this.BeginInvoke((Action)this.UpdateDevicesList);
 }
示例#8
0
 static void OpenNI_onDeviceConnected(DeviceInfo Device)
 {
     Console.WriteLine(Device.Name + " Connected ...");
 }