/// <summary> /// Gets triggered when an extraction happens /// </summary> /// <param name="message"></param> void frmMain_Extracted(Worker.ExtractionMessage message) { try { //Set the call back for thread-safe execution ExtractionInfoCallBack dlgExtractoinInfoCallBack = new ExtractionInfoCallBack(UpdateExtractionInfo); this.Invoke(dlgExtractoinInfoCallBack, new object[] { message }); } catch (Exception ex) { throw; } }
/// <summary> /// Updates the extraction information to UI /// </summary> /// <param name="message"></param> private void UpdateExtractionInfo(Worker.ExtractionMessage message) { if (message.ToString().Trim().Length > 0) { txtExtractionInfo.AppendText(message.ToString()); } //If all the extraction is completed if (message.IsExtractionCompleted) { btnExtract.Enabled = true; } }