Exemplo n.º 1
0
 private void RaiseSynchronizeElevationAngle(object sender, SynchronizeElevationAngleEventArgs e)
 {
     if (SynchronizeElevationAngle != null)
     {
         SynchronizeElevationAngle(sender, e);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Callback when the elevation of kinect sensor is modified in PropertiesKinect
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnSynchronizeElevationAngle(object sender, SynchronizeElevationAngleEventArgs e)
 {
     if (m_refKinectsensor != null)
     {
         try
         {
             m_refKinectsensor.ElevationAngle = e.Elevation;
         }
         catch (InvalidOperationException ex)
         {
             DisplayDebugLog("Exception Elevation angle", true);
             throw new KinectException(ex.Message);
         }
     }
 }