Inheritance: System.EventArgs
Exemple #1
0
        private void realHelper_KinectV2StatusChanged(object sender, KinectV2StatusEventArgs e)
        {
            if (StatusChanged != null)
            {
                StatusEventArgs args = new StatusEventArgs();
                args.KinectNumber = e.KinectNumber;
                args.Status = e.Status;
                args.UniqueKinectID = e.UniqueKinectID;

                StatusChanged(this, args);
            }
        }
Exemple #2
0
        public static StatusEventArgs[] GetAllKinectsStatus()
        {
            KinectV2StatusEventArgs[] statusArray = KinectV2StatusHelper.GetAllKinectsStatus();
            StatusEventArgs[] statuses = new StatusEventArgs[statusArray.Length];

            for (int i = 0; i < statusArray.Length; i++)
            {
                statuses[i] = new StatusEventArgs();
                statuses[i].KinectNumber = statusArray[i].KinectNumber;
                statuses[i].Status = statusArray[i].Status;
                statuses[i].UniqueKinectID = statusArray[i].UniqueKinectID;
            }

            return statuses;
        }