예제 #1
0
        /// <summary>
        /// 转换基准
        /// </summary>
        /// <param name="basePrn"></param>
        /// <returns></returns>
        public FcbOfUpdFile ToFile(SatelliteNumber basePrn)
        {
            FcbOfUpdFile result = new FcbOfUpdFile();

            foreach (var item in this)
            {
                var toVal = item.ConvertTo(basePrn);
                if (toVal == null)
                {
                    continue;
                }
                result.Add(toVal);
            }
            return(result);
        }
예제 #2
0
        /// <summary>
        /// 读取为文件
        /// </summary>
        /// <returns></returns>
        public FcbOfUpdFile ReadToFile()
        {
            FcbOfUpdFile file = new FcbOfUpdFile();

            file.Name = System.IO.Path.GetFileName(InputPath);
            foreach (var item in this)
            {
                if (item == null)
                {
                    continue;
                }

                file.Add(item);
            }

            return(file);
        }