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); }