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

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