예제 #1
0
        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;
        }
예제 #3
0
 public SlideShowManager()
 {
     _detector = BootStrapper.Kernel.Get <IGestures>();
     _detector.GrabAndThrowRightHanded += GrabAndThrowRightHanded;
     _detector.GrabAndThrowLeftHanded  += GrabAndThrowLeftHanded;
 }
예제 #4
0
 public SlideShowManager()
 {
     _detector = BootStrapper.Kernel.Get<IGestures>();
     _detector.GrabAndThrowRightHanded += GrabAndThrowRightHanded;
     _detector.GrabAndThrowLeftHanded += GrabAndThrowLeftHanded;
 }