コード例 #1
0
ファイル: Ribbon.cs プロジェクト: Mahmoud292/KinectV2-mas2
        private void Ribbon_Load(object sender, RibbonUIEventArgs e)
        {
            _kinectStatus = BootStrapper.Kernel.Get <IKinectStatus>();
            UpdateUsers(null, _kinectStatus.TrackedBodies);

            _kinectStatus.AvailabilityChanged     += UpdateAvailability;
            _kinectStatus.TrackedBodyCountChanged += UpdateUsers;
            _kinectStatus.ErrorOccured            += _kinectStatus_ErrorOccured;

            _gestures = BootStrapper.Kernel.Get <IGestures>();
            _gestures.GrabAndThrowLeftHanded  += GrabAndThrowLeftHanded;
            _gestures.GrabAndThrowRightHanded += GrabAndThrowRightHanded;
        }
コード例 #2
0
ファイル: Ribbon.cs プロジェクト: jansaris/KinectV2
        private void Ribbon_Load(object sender, RibbonUIEventArgs e)
        {
            _kinectStatus = BootStrapper.Kernel.Get<IKinectStatus>();
            UpdateUsers(null, _kinectStatus.TrackedBodies);

            _kinectStatus.AvailabilityChanged += UpdateAvailability;
            _kinectStatus.TrackedBodyCountChanged += UpdateUsers;
            _kinectStatus.ErrorOccured += _kinectStatus_ErrorOccured;

            _gestures = BootStrapper.Kernel.Get<IGestures>();
            _gestures.GrabAndThrowLeftHanded += GrabAndThrowLeftHanded;
            _gestures.GrabAndThrowRightHanded += GrabAndThrowRightHanded;
        }