private void _TakePicture_P_RightHandUp(object sender, EventArgs e) { //act --> 사진 촬영 시작 Action <string> PostureEventHandler = _TakePicture_PostureAction_OnRightHandUp; KinectController.ChangePostureEventHandler(PostureEventHandler); TakePictureControl.hiddenUiButtonComponent(); TakePictureTimer.Start(); }
private void _CheckPicture_Initialize() { // initVideoElement(); switch (CurrentPictureMode) { case 0: Action <string> PostureEventHandlerM0 = _CheckPicture_PostureAction_Mode0; KinectController.ChangePostureEventHandler(PostureEventHandlerM0); break; case 1: Action <string> PostureEventHandlerM1 = _CheckPicture_PostureAction_Mode1; KinectController.ChangePostureEventHandler(PostureEventHandlerM1); break; } }
private void _Barcode_Initialize() { getCameraTS = new ThreadStart(this._Barcode_TS_setTimer); getCameraThread = new Thread(getCameraTS); getCameraThread.Start(); getBarcodeTS = new ThreadStart(this._Barcode_TS_setBarcodeTimer); getBarcodeThread = new Thread(getBarcodeTS); getBarcodeThread.Start(); Action <string> PostureEventHandler = _Barcode_PostureAction; KinectController.ChangePostureEventHandler(PostureEventHandler); }
public Main() { InitializeComponent(); foreach (DsDevice div in DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice)) { if (div.Name == "Microsoft LifeCam Studio") { DsDevice device = div; videoElement.VideoCaptureDevice = device; videoElement.VideoCaptureSource = device.Name; } } Action <string> PostureEventHandler = _Main_PostureAction; KinectController.ChangePostureEventHandler(PostureEventHandler); }
private void _TakePicture_Initialize(int Mode) { CurrentPictureMode = Mode; if (Mode == 0) { TimeSec = 5; } else { TimeSec = 7; } TakePictureTimer.Stop(); TakePictureTimer.Interval = new TimeSpan(0, 0, 1); TakePictureTimer.Tick += new EventHandler(_TakePicture_T_TakePictureStart); Action <string> PostureEventHandler = _TakePicture_PostureAction; KinectController.ChangePostureEventHandler(PostureEventHandler); }
private void _bProductInf_Initialize(string barcode) { _Global_C_RemoveControl(barcodeControl); barcodeControl.Dispose(); barcodeControl = null; RESTful Network = new RESTful(); //Network.RESTfulSingleParmRequest(); bProductInfoControl = new BarcodeProductInfo(); _Global_C_AddControl(bProductInfoControl); Action <string> PostureEventHandler = _bProductInf_PostureAction; KinectController.ChangePostureEventHandler(PostureEventHandler); if (CurrentBarcodeReadMode == 1) { bProductInfoControl.hiddenUiAddProduct(); } }