void OpenNI_onDeviceConnectionStateChanged(DeviceInfo Device) { this.BeginInvoke(new MethodInvoker(delegate() { UpdateDevicesList(); })); }
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; }
private void OpenNiOnDeviceConnectionStateChanged(DeviceInfo device) { this.BeginInvoke(new MethodInvoker(this.UpdateDevicesList)); }
private void OpenNI_onDeviceConnectionStateChanged(DeviceInfo Device) { this.BeginInvoke((Action)this.UpdateDevicesList); }
private static void OpenNiOnDeviceDisconnected(DeviceInfo device) { Console.WriteLine(device.Name + " Disconnected ..."); }
void OpenNI_onDeviceStateChanged(DeviceInfo Device, OpenNI.DeviceState state) { this.BeginInvoke((Action)delegate { UpdateDevicesList(); }); }
private void OpenNiOnDeviceStateChanged(DeviceInfo device, OpenNI.DeviceState state) { this.BeginInvoke((Action)this.UpdateDevicesList); }
static void OpenNI_onDeviceConnected(DeviceInfo Device) { Console.WriteLine(Device.Name + " Connected ..."); }