private void updateLiPinMaWorker_DoWork(object sender, DoWorkEventArgs e) { try { LiPinMaManager.LoadLiPinMaFromFile(this._DBManger, this.toAppendLiPinMa); } catch (Exception ex) { DataHelper.WriteFormatExceptionLog(ex, "updateLiPinMaWorker_DoWork", false, false); } }
//The background loads the gift code from the file private void updateLiPinMaWorker_DoWork(object sender, DoWorkEventArgs e) { try { LiPinMaManager.LoadLiPinMaFromFile(_DBManger, toAppendLiPinMa); } catch (Exception ex) { ////System.Windows.Application.Current.Dispatcher.Invoke((MethodInvoker)delegate //{ // Formatting exception error message DataHelper.WriteFormatExceptionLog(ex, "updateLiPinMaWorker_DoWork", false); //throw ex; //}); } }