예제 #1
0
        private void _TakePicture_P_RightHandUp(object sender, EventArgs e)
        {
            //act --> 사진 촬영 시작
            Action <string> PostureEventHandler = _TakePicture_PostureAction_OnRightHandUp;

            KinectController.ChangePostureEventHandler(PostureEventHandler);
            TakePictureControl.hiddenUiButtonComponent();
            TakePictureTimer.Start();
        }
예제 #2
0
        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;
            }
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }
예제 #6
0
        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();
            }
        }