Пример #1
0
        private void _radioGroupFrameSpeed_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                if (!_isInit)
                {
                    XCamera cam = XCamera.GetInstance();
                    switch (_radioGroupFrameSpeed.SelectedIndex)
                    {
                    case 0:          //普通
                        cam.SetFrameSpeed(emDSFrameSpeed.FRAME_SPEED_NORMAL);
                        break;

                    case 1:         //高速
                        cam.SetFrameSpeed(emDSFrameSpeed.FRAME_SPEED_HIGH);
                        break;

                    case 2:         //超高速
                        cam.SetFrameSpeed(emDSFrameSpeed.FRAME_SPEED_SUPER);
                        break;

                    default:
                        break;
                    }
                    Init();
                }
            }
            catch (System.Exception ex)
            {
                _logger.Error(ex.Message);
            }
        }