Example #1
0
        /// <summary>
        /// 取得第一個Camera Settings
        /// </summary>
        /// <param name="section"></param>
        /// <returns></returns>
        public static string GetCameraSettingFilepath(CameraSettingSection section)
        {
            var setting = section.Camera.Cast <CameraSetting>().FirstOrDefault();
            var fpath   = (setting != null) ? setting.SettingFilepath.ToAppAbsolutePath() : "";

            return(fpath);
        }
Example #2
0
        /// <summary>
        /// 取得指定的 cameraSettingName
        /// </summary>
        /// <param name="section"></param>
        /// <param name="cameraSettingName"></param>
        /// <returns></returns>
        public static string GetCameraSettingFilepath(CameraSettingSection section, string cameraSettingName)
        {
            var setting = section.Camera.Cast <CameraSetting>().SingleOrDefault(p => p.Name == cameraSettingName);
            var fpath   = (setting != null) ? setting.SettingFilepath.ToAppAbsolutePath() : "";

            return(fpath);
        }
 /// <summary>
 /// 取得第一個Camera Settings
 /// </summary>
 /// <param name="section"></param>
 /// <returns></returns>
 public static string GetCameraSettingFilepath(CameraSettingSection section)
 {
     var setting = section.Camera.Cast<CameraSetting>().FirstOrDefault();
     var fpath = (setting != null) ? setting.SettingFilepath.ToAppAbsolutePath() : "";
     return fpath;
 }
 /// <summary>
 /// 取得指定的 cameraSettingName
 /// </summary>
 /// <param name="section"></param>
 /// <param name="cameraSettingName"></param>
 /// <returns></returns>
 public static string GetCameraSettingFilepath(CameraSettingSection section, string cameraSettingName)
 {
     var setting = section.Camera.Cast<CameraSetting>().SingleOrDefault(p => p.Name == cameraSettingName);
     var fpath = (setting != null) ? setting.SettingFilepath.ToAppAbsolutePath() : "";
     return fpath;
 }