ParseForm.cs

来源:互联网 发布:海苔 知乎 编辑:程序博客网 时间:2024/06/06 03:15
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------\r\n";            //    string parseFile = "Parse -> " + gFilePath + "\r\n";            //    string result = "[Content]: " + str + "\r\n";            //    textBox1.Text += title  + parseFile + result;            //}            //br.Close();            //fs.Close();        }    }}
原创粉丝点击