private void RaiseSynchronizeKinectMode(object sender, SynchronizeKinectModeEventArgs e)
 {
     if (SynchronizeDepthStreamActivation != null)
     {
         SynchronizeKinectMode(sender, e);
     }
 }
Esempio n. 2
0
        private void OnSynchronizeKinectMode(object sender, SynchronizeKinectModeEventArgs e)
        {
            if (m_refKinectsensor != null)
            {
                if (m_refListUsers.Count > 0)
                {
                    List<int> listUserID = new List<int>(m_refListUsers.Keys);

                    foreach (int userId in listUserID)
                    {
                        DeleteUserData(userId);
                    }
                }

                lock (m_lstTask)
                {
                    m_lstTask.Enqueue(new Action((SynchronizeKinectModeState)SynchronizeInteractionStream));
                }
                m_resetEvent.Set();
            }
        }