private void OnCameraCheckBoxChecked(ExCommandParameter e)
        {
            string currentDeviceID = e.Parameter as string;

            DeviceCameraList.FirstOrDefault(x => x.DevId == currentDeviceID).DevType = MediaDeviceType.Camera;
            _nemo.ChooseCameraDev(SDKCameraOrdinal.First, currentDeviceID);
        }
        private void OnGaopaiCheckBoxClick(ExCommandParameter e)
        {
            string currentDeviceID            = e.Parameter as string;
            SettingsDeviceListItemInfo device = DeviceCameraList.FirstOrDefault(x => x.DevId != currentDeviceID && x.IsChecked && x.DevType == MediaDeviceType.SubCamera);

            if (device != null)
            {
                device.IsChecked = false;
            }
        }
        private void OnGaopaiCheckBoxChecked(ExCommandParameter e)
        {
            string currentDeviceID = e.Parameter as string;

            DeviceCameraList.FirstOrDefault(x => x.DevId == currentDeviceID).DevType = MediaDeviceType.SubCamera;
            try
            {
                _nemo.ChooseCameraDev(SDKCameraOrdinal.Second, currentDeviceID);
            }
            catch
            {
                SetPopMessage("设备异常,请刷新重试!");
            }
        }
        private void OnCameraCheckBoxClick(ExCommandParameter e)
        {
            //Click事件在Checked&UnChecked之后触发
            string currentDeviceID = e.Parameter as string;

            if (DeviceCameraList.Where(x => x.DevType == MediaDeviceType.Camera && x.IsChecked).Count() < 1)
            {
                SetPopMessage("摄像头必须保持一个为开启状态!");
                DeviceCameraList.FirstOrDefault(x => x.DevId == currentDeviceID).IsChecked = true;
                return;
            }
            else
            {
                SettingsDeviceListItemInfo device = DeviceCameraList.FirstOrDefault(x => x.DevId != currentDeviceID && x.IsChecked && x.DevType == MediaDeviceType.Camera);
                if (device != null)
                {
                    device.IsChecked = false;
                }
            }
        }
        /// <summary>
        /// 初始化摄像头设备列表
        /// </summary>
        /// <param name="devInfos"></param>
        private void InitCameraDeviceList(List <SettingsDeviceListItemInfo> devInfos)
        {
            if (0 >= devInfos.Count)
            {
                return;
            }

            foreach (SettingsDeviceListItemInfo devInfo in devInfos)
            {
                if (devInfo.IsChecked)
                {
                    devInfo.DevType = MediaDeviceType.Camera;
                }
                else if (devInfo.IsSubChecked)
                {
                    devInfo.DevType = MediaDeviceType.SubCamera;
                }
                else
                {
                    devInfo.DevType = MediaDeviceType.None;
                }
                DeviceCameraList.Add(devInfo);
            }
        }
        private void OnGaopaiCheckBoxUnChecked(ExCommandParameter e)
        {
            string currentDeviceID = e.Parameter as string;

            DeviceCameraList.FirstOrDefault(x => x.DevId == currentDeviceID).DevType = MediaDeviceType.None;
        }