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

            MessageBox.Show(@"Error: " + status);
            return false;
        }
Beispiel #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;
 }