示例#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
        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;
        }
 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;
 }