public override void readContent(string path) { txtProc txtProc = new txtProc(); this.content = txtProc.readTxtFile(path); this.listSegments = txtProc.splitTxtContentToSegment(this.content); }
public override void readContent(string path) { txtProc txtProc = new txtProc(); this.content = txtProc.readTxtFile(path); contentpage contentpage = new contentpage(); contentpage.content = this.content; contentpage.page = 1; listcontentpage.Add(contentpage); //this.listSegments = txtProc.splitTxtContentToSegment(this.content,delimiters,this.fileName); this.listSegments = txtProc.splitTxtContentToSegment2(this.content, delimiters, this.fileName); }
public override void createFileTranslateDocument() { txtProc txtProc = new txtProc(); if (this.content.Length > 0) { foreach (Segment a in listSegments) { tm tmp = a.getTM(); if (tmp.Target != null) { if (tmp.Target.Trim() != "") { this.content = txtProc.ReplaceFirst(this.content, tmp.Source, tmp.Target); } } } } }
public string replaceContent() { txtProc txtProc = new txtProc(); string contentReplace = this.content; if (this.content.Length > 0) { foreach (Segment a in listSegments) { tm tmp = a.getTM(); if (tmp.Target != null) { if (tmp.Target.Trim() != "") { contentReplace = txtProc.ReplaceFirst(contentReplace, tmp.Source, tmp.Target); } } } } return(contentReplace); }