private void _ViewStyleset_P_RightHandUp(object sender, EventArgs e) { KinectController.RemoveGestureEventHandler(); sProductInfoControl = new StylesetProductInfo(CurrentStylesetIdx); _sProductInfo_Initialize(StyleSetData[CurrentStylesetIdx]); _Global_C_AddControl(sProductInfoControl); }
private void _ViewStyleset_C_UserLook3(object sender, EventArgs e) { if (PageControl.getGrid(Window.GetWindow(this)).Children[PageControl.getGrid(Window.GetWindow(this)).Children.Count - 1] != sProductExtraInfoControl) { KinectController.RemoveGestureEventHandler(); sProductExtraInfoControl = new StylesetProductInfo(UserLookList[2].id); _sProductExtraInfo_Initialize(UserLookList[2]); _Global_C_AddControl(sProductExtraInfoControl); } }
private void _sProductInfo_P_RightHandUp(object sender, EventArgs e) { _Global_C_RemoveControl(sProductInfoControl); sProductInfoControl.Dispose(); sProductInfoControl = null; Action <string> RightSwipeGestureHandler = _ViewStyleset_SwipeGestureRight; Action <string> LeftSwipeGestureHandler = _ViewStyleset_SwipeGestureLeft; KinectController.ChangeGestureEventHandler(RightSwipeGestureHandler, "R"); KinectController.ChangeGestureEventHandler(LeftSwipeGestureHandler, "L"); }
private void _sProductExtraInfo_P_RightHandUp(object sender, EventArgs e) { _Global_C_RemoveControl(sProductExtraInfoControl); sProductExtraInfoControl.Dispose(); sProductExtraInfoControl = null; Action<string> RightSwipeGestureHandler = _ViewStyleset_SwipeGestureRight; Action<string> LeftSwipeGestureHandler = _ViewStyleset_SwipeGestureLeft; KinectController.ChangeGestureEventHandler(RightSwipeGestureHandler, "R"); KinectController.ChangeGestureEventHandler(LeftSwipeGestureHandler, "L"); }