Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 3
0
        public static bool HandleError(OpenNI.Status status)
        {
            if (status == OpenNI.Status.Ok)
            {
                return true;
            }

            Console.WriteLine("Error: " + status + " - " + OpenNI.LastError);
            Console.ReadLine();
            return false;
        }
Esempio n. 4
0
        private void HandleError(OpenNI.Status status)
        {
            if (status == OpenNI.Status.Ok)
            {
                return;
            }

            MessageBox.Show(
                string.Format(@"Error: {0} - {1}", status, OpenNI.LastError), 
                @"Error", 
                MessageBoxButtons.OK, 
                MessageBoxIcon.Asterisk);
        }
Esempio n. 5
0
 private static bool HandleError(OpenNI.Status status)
 {
     if (status == OpenNI.Status.Ok)
     {
         return true;
     }
     MessageBox.Show(
         string.Format("Error: {0} - {1}", status, OpenNI.LastError),
         @"Error",
         MessageBoxButtons.OK,
         MessageBoxIcon.Asterisk);
     return false;
 }
Esempio n. 6
0
 public bool isFrameAvailable()
 {
     return(OpenNI.WaitForStream(this, OpenNI.TIMEOUT_NONE) == OpenNI.Status.OK);
 }
Esempio n. 7
0
 void OpenNI_onDeviceStateChanged(DeviceInfo Device, OpenNI.DeviceState state)
 {
     this.BeginInvoke((Action)delegate
     {
         UpdateDevicesList();
     });
 }
Esempio n. 8
0
 private bool HandleOpenNIError(OpenNI.Status status)
 {
     if (status == OpenNI.Status.Ok)
         return true;
     MessageBox.Show("Error: " + status.ToString() + " - " + OpenNI.LastError, "Error");
     return false;
 }
Esempio n. 9
0
 private void OpenNiOnDeviceStateChanged(DeviceInfo device, OpenNI.DeviceState state)
 {
     this.BeginInvoke((Action)this.UpdateDevicesList);
 }
Esempio n. 10
0
 public bool IsFrameAvailable()
 {
     return(OpenNI.WaitForStream(this, OpenNI.TimeoutNone) == OpenNI.Status.Ok);
 }