Example #1
0
 static bool HandleError(NiTE.Status status)
 {
     if (status == NiTE.Status.OK)
         return true;
     MessageBox.Show("Error: " + status.ToString());
     return false;
 }
Example #2
0
 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;
 }
Example #3
0
        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;
        }
Example #4
0
        private static bool HandleError(NiTE.Status status)
        {
            if (status == NiTE.Status.Ok)
            {
                return true;
            }

            MessageBox.Show(@"Error: " + status);
            return false;
        }
Example #5
0
 private bool HandleNiteError(NiTE.Status status)
 {
     if (status == NiTE.Status.Ok)
         return true;
     MessageBox.Show("Error: " + status.ToString() + " - " + OpenNI.LastError, "Error");
     return false;
 }