static bool HandleError(NiTE.Status status) { if (status == NiTE.Status.OK) return true; MessageBox.Show("Error: " + status.ToString()); return false; }
static bool HandleError(NiTE.Status status) { if (status == NiTE.Status.OK) return true; MessageBox.Show("Error: " + status.ToString() + Environment.NewLine + OpenNIWrapper.OpenNI.LastError); return false; }
private static bool HandleError(NiTE.Status status) { if (status == NiTE.Status.Ok) { return true; } MessageBox.Show(string.Format(@"Error: {0}{1}{2}", status, Environment.NewLine, OpenNI.LastError)); return false; }
private static bool HandleError(NiTE.Status status) { if (status == NiTE.Status.Ok) { return true; } MessageBox.Show(@"Error: " + status); return false; }
private bool HandleNiteError(NiTE.Status status) { if (status == NiTE.Status.Ok) return true; MessageBox.Show("Error: " + status.ToString() + " - " + OpenNI.LastError, "Error"); return false; }