Пример #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 ...");
 }