示例#1
0
 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;
 }
示例#2
0
 static bool HandleError(OpenNI.Status status)
 {
     if (status == OpenNI.Status.OK)
         return true;
     Console.WriteLine("Error: " + status.ToString() + " - " + OpenNI.LastError);
     Console.ReadLine();
     return false;
 }
示例#3
0
 private bool HandleOpenNIError(OpenNI.Status status)
 {
     if (status == OpenNI.Status.Ok)
         return true;
     MessageBox.Show("Error: " + status.ToString() + " - " + OpenNI.LastError, "Error");
     return false;
 }