Example #1
0
        public bool OnLoadASYMTEKLib()
        {
            //string libPath = Application.StartupPath + "\\Trajectory\\ASYMTEK.LIB";
            string libPath = Application.StartupPath + "\\ASYMTEK.LIB";
            bool   ret     = CsvUtil.ReadLines(libPath, out libStrArray);

            if (ret == false)
            {
                return(ret);
            }
            return(ret);
        }
Example #2
0
        /// <summary>
        /// 获取文本内容 信息
        /// </summary>
        /// <returns></returns>
        public Result GetText()
        {
            Result res = Result.OK;

            if (String.IsNullOrEmpty(this.TrajPath))
            {
                return(Result.FAILED);
            }
            //获取拓展文件
            this.extension = Path.GetExtension(this.TrajPath);
            //获取所有的内容
            bool ret = CsvUtil.ReadLines(this.TrajPath, out Lines);

            if (ret == false)
            {
                res = Result.FAILED;
            }
            return(res);
        }