private bool HandleError(OpenNI.Status status) { if (status == OpenNI.Status.OK) return true; MessageBox.Show("Error: " + status.ToString() + " - " + OpenNI.LastError, "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); return false; }
static bool HandleError(OpenNI.Status status) { if (status == OpenNI.Status.OK) return true; Console.WriteLine("Error: " + status.ToString() + " - " + OpenNI.LastError); Console.ReadLine(); return false; }
public static bool HandleError(OpenNI.Status status) { if (status == OpenNI.Status.Ok) { return true; } Console.WriteLine("Error: " + status + " - " + OpenNI.LastError); Console.ReadLine(); return false; }
private void HandleError(OpenNI.Status status) { if (status == OpenNI.Status.Ok) { return; } MessageBox.Show( string.Format(@"Error: {0} - {1}", status, OpenNI.LastError), @"Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); }
private static bool HandleError(OpenNI.Status status) { if (status == OpenNI.Status.Ok) { return true; } MessageBox.Show( string.Format("Error: {0} - {1}", status, OpenNI.LastError), @"Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); return false; }
public bool isFrameAvailable() { return(OpenNI.WaitForStream(this, OpenNI.TIMEOUT_NONE) == OpenNI.Status.OK); }
void OpenNI_onDeviceStateChanged(DeviceInfo Device, OpenNI.DeviceState state) { this.BeginInvoke((Action)delegate { UpdateDevicesList(); }); }
private bool HandleOpenNIError(OpenNI.Status status) { if (status == OpenNI.Status.Ok) return true; MessageBox.Show("Error: " + status.ToString() + " - " + OpenNI.LastError, "Error"); return false; }
private void OpenNiOnDeviceStateChanged(DeviceInfo device, OpenNI.DeviceState state) { this.BeginInvoke((Action)this.UpdateDevicesList); }
public bool IsFrameAvailable() { return(OpenNI.WaitForStream(this, OpenNI.TimeoutNone) == OpenNI.Status.Ok); }