public void doWork(object sender, System.ComponentModel.DoWorkEventArgs e) { parse(false); FileParserResult rst = new FileParserResult(); rst.result = result; rst.msg = msg; e.Result = rst; }
private void parseFileDone(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e) { FileParserResult rst = e.Result as FileParserResult; m_autoCompleteData = rst.result; setStatus(rst.msg); if (m_parsePending) { m_parsePending = false; parseFile(); } }