コード例 #1
0
 /// <summary>
 /// 更新相机配置文件
 /// </summary>
 public void UpdateCameraConfigFiles()
 {
     if (Camera?.IsOpen == true)
     {
         //获取相机配置文件
         FileInfo[] configFileInfos = CameraFactory.GetCameraConfigFiles(Camera?.Info.SerialNumber);
         CameraConfigFiles = new ObservableCollection <string>(configFileInfos.ToList().ConvertAll(x => x.Name));
     }
 }
コード例 #2
0
        /// <summary>
        /// 更新相机文件
        /// </summary>
        private void UpdateCameraFile()
        {
            if (SelectedCamera != null)
            {
                //获取相机配置文件
                FileInfo[] configFileInfos = CameraFactory.GetCameraConfigFiles(SelectedCamera?.Info.SerialNumber);
                CameraConfigFiles = new ObservableCollection <string>(configFileInfos.ToList().ConvertAll(x => x.Name));

                //获取相机标定文件
                FileInfo[] calibrationFileInfos = CameraFactory.GetCameraCalibrationFiles(SelectedCamera?.Info.SerialNumber);
                CameraCalibrationFiles = new ObservableCollection <string>(calibrationFileInfos.ToList().ConvertAll(x => x.Name));
                CameraCalibrationFiles.Add("不需标定");
            }
        }