Example #1
0
 private void _CheckPicture_P_RightHandUp_Mode1(object sender, EventArgs e)
 {
     ViewStylesetControl = new ViewStyleset();
     _Global_C_AddControl(ViewStylesetControl);
     _Global_C_RemoveControl(CheckPictureControl);
     CheckPictureControl.Dispose();
     CheckPictureControl = null;
 }
 private void _CheckPicture_P_LeftHandUp_Mode0(object sender, EventArgs e)
 {
     TakePictureControl = new TakePicture();
     _TakePicture_Initialize(0);
     _Global_C_AddControl(TakePictureControl);
     _Global_C_RemoveControl(CheckPictureControl);
     CheckPictureControl.Dispose();
     CheckPictureControl = null;
 }
Example #3
0
        private void _TakePicture_T_getCameraImage()
        {
            int    width = 0, height = 0;
            string path = null;
            bool   flag = true;

            Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(delegate
            {
                width  = (int)videoElement.ActualHeight;
                height = (int)videoElement.ActualWidth;
                bmp    = ConverterBitmapImage(videoElement);
                path   = CameraController.procImage(bmp);
                while (flag)
                {
                    if (path != null)
                    {
                        flag = false;
                        if (CurrentPictureMode == 0)
                        {
                            FrontPicturePath = path;
                        }
                        else if (CurrentPictureMode == 1)
                        {
                            BackPicturePath = path;
                        }

                        TakePictureTimer    = new DispatcherTimer();
                        CheckPictureControl = new CheckPicture(path, CurrentPictureMode);
                        _Global_C_RemoveControl(TakePictureControl);
                        TakePictureControl.Dispose();
                        TakePictureControl = null;
                        _Global_C_AddControl(CheckPictureControl);
                        _CheckPicture_Initialize();
                    }
                }
            }));
        }
 private void _CheckPicture_P_LeftHandUp_Mode1(object sender, EventArgs e)
 {
     _TakePicture_Initialize(1);
     TakePictureControl = new TakePicture();
     _Global_C_AddControl(TakePictureControl);
     _Global_C_RemoveControl(CheckPictureControl);
     CheckPictureControl.Dispose();
     CheckPictureControl = null;
 }
 private void _CheckPicture_P_RightHandUp_Mode1(object sender, EventArgs e)
 {
     ViewStylesetControl = new ViewStyleset();
     _Global_C_AddControl(ViewStylesetControl);
     _Global_C_RemoveControl(CheckPictureControl);
     CheckPictureControl.Dispose();
     CheckPictureControl = null;
 }
        private void _TakePicture_T_getCameraImage()
        {
            int width = 0, height = 0;
            string path = null;
            bool flag = true;
            Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(delegate
            {
                width = (int)videoElement.ActualHeight;
                height = (int)videoElement.ActualWidth;
                bmp =  ConverterBitmapImage(videoElement);
                path = CameraController.procImage(bmp);
                while (flag)
                {
                    if (path != null)
                    {
                        flag = false;
                        if (CurrentPictureMode == 0)
                            FrontPicturePath = path;
                        else if (CurrentPictureMode == 1)
                            BackPicturePath = path;

                        TakePictureTimer = new DispatcherTimer();
                        CheckPictureControl = new CheckPicture(path, CurrentPictureMode);
                        _Global_C_RemoveControl(TakePictureControl);
                        TakePictureControl.Dispose();
                        TakePictureControl = null;
                        _Global_C_AddControl(CheckPictureControl);
                        _CheckPicture_Initialize();

                    }
                }
            }));

        }