void backgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (OnProgressWorkCompleted != null) { ProgressWorkCompletedEventArgs args = new ProgressWorkCompletedEventArgs(e, null); if (!isImportInCurrentGameBook) { args.data = pgnFileWriter.ToString(); } OnProgressWorkCompleted(this, args); } }
void backgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (OnProgressWorkCompleted != null) { if (isPgnToIcbConversion) { book.Save(); } ProgressWorkCompletedEventArgs args = new ProgressWorkCompletedEventArgs(e, null); OnProgressWorkCompleted(this, args); } }