protected override void OnDoWork(DoWorkEventArgs e) { OffsetFinderStruct offsetFinderStruct = (OffsetFinderStruct)e.Argument; if (!String.IsNullOrEmpty(offsetFinderStruct.outputFileExtension) && !offsetFinderStruct.outputFileExtension.StartsWith(".")) { offsetFinderStruct.outputFileExtension = "." + offsetFinderStruct.outputFileExtension; } base.OnDoWork(e); }
protected override void DoTaskForFile(string pPath, IVgmtWorkerStruct pOffsetFinderStruct, DoWorkEventArgs e) { OffsetFinderStruct offsetFinderStruct = (OffsetFinderStruct) pOffsetFinderStruct; VGMToolbox.util.FindOffsetStruct findOffsetStruct = offsetFinderStruct.ToFindOffsetStruct(); string output; ParseFile.FindOffsetAndCutFile(pPath, findOffsetStruct, out output, offsetFinderStruct.OutputLogFile, offsetFinderStruct.OutputLogFile); this.outputBuffer.Append(output); //this.progressStruct.Clear(); //this.progressStruct.GenericMessage = output; //ReportProgress(Constants.ProgressMessageOnly, this.progressStruct); }