コード例 #1
0
ファイル: frm_Main.cs プロジェクト: nishizhen/NiWrapper.Net
 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
ファイル: Program.cs プロジェクト: npapadop/NiWrapper.Net
 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
ファイル: Program.cs プロジェクト: circuitrider/NiWrapper.Net
        public static bool HandleError(OpenNI.Status status)
        {
            if (status == OpenNI.Status.Ok)
            {
                return true;
            }

            Console.WriteLine("Error: " + status + " - " + OpenNI.LastError);
            Console.ReadLine();
            return false;
        }
コード例 #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);
        }
コード例 #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;
 }
コード例 #6
0
 public bool isFrameAvailable()
 {
     return(OpenNI.WaitForStream(this, OpenNI.TIMEOUT_NONE) == OpenNI.Status.OK);
 }
コード例 #7
0
 void OpenNI_onDeviceStateChanged(DeviceInfo Device, OpenNI.DeviceState state)
 {
     this.BeginInvoke((Action)delegate
     {
         UpdateDevicesList();
     });
 }
コード例 #8
0
ファイル: OpenKinect.cs プロジェクト: hcilab-um/ArmFatigueCE
 private bool HandleOpenNIError(OpenNI.Status status)
 {
     if (status == OpenNI.Status.Ok)
         return true;
     MessageBox.Show("Error: " + status.ToString() + " - " + OpenNI.LastError, "Error");
     return false;
 }
コード例 #9
0
 private void OpenNiOnDeviceStateChanged(DeviceInfo device, OpenNI.DeviceState state)
 {
     this.BeginInvoke((Action)this.UpdateDevicesList);
 }
コード例 #10
0
 public bool IsFrameAvailable()
 {
     return(OpenNI.WaitForStream(this, OpenNI.TimeoutNone) == OpenNI.Status.Ok);
 }