void worker_DoWorkExport(object sender, DoWorkEventArgs e) { // export... MorphemeConnectExporter Exporter = new MorphemeConnectExporter(); Exporter.ExportAll(sender); // get the local from the exporter and pass it as the Result List <LogItem> Log = new List <LogItem>(Exporter.Log); e.Result = Log; }
void worker_DoWorkExportAndProcess(object sender, DoWorkEventArgs e) { // export... MorphemeConnectExporter Exporter = new MorphemeConnectExporter(); Exporter.ExportAll(sender); /// ...and process! MorphemeAssetProcessor Processor = new MorphemeAssetProcessor(); Processor.ProcessAll(sender); // get the local logs from both and pass it as the Result List <LogItem> Log = new List <LogItem>(Exporter.Log); Log.AddRange(Processor.Log); e.Result = Log; }