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; }
private bool HandleOpenNIError(OpenNI.Status status) { if (status == OpenNI.Status.Ok) return true; MessageBox.Show("Error: " + status.ToString() + " - " + OpenNI.LastError, "Error"); return false; }