ParseForm.cs

2022-05-07 18:28:02 浏览数 (2)

代码语言:javascript复制
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Text.RegularExpressions;

using Packet;

namespace TSProducer
{
    public partial class ParseForm : WeifenLuo.WinFormsUI.Docking.DockContent
    {
        private string gFilePath;
        public ParseForm()
        {
            InitializeComponent();
        }

        public void setGFilePath(string filePath)
        {
            gFilePath = filePath;
        }

        public void parseCdt(string filePath)
        {
            //setGFilePath(filePath);
            //FileStream fs = new FileStream(gFilePath, FileMode.Open, FileAccess.Read);
            //BinaryReader br = new BinaryReader(fs);
            //if (br.PeekChar() != -1)
            //{
            //    string str = Convert.ToString(br.ReadString());
            //    str = str.Replace(CDT.CDTTableStr, "");
            //    string title = "------Parse started: Table : CDT------rn";
            //    string parseFile = "Parse -> "   gFilePath   "rn";
            //    string result = "[Content]: "   str   "rn";
            //    textBox1.Text  = title    parseFile   result;

            //}
            //br.Close();
            //fs.Close();
        }
    }


}
cs

0 人点赞