void SubOperationAddProject_Completed(object sender, EventArgs e) { SubmitOperation submitOperation = sender as SubmitOperation; if (submitOperation.HasError) { submitOperation.MarkErrorAsHandled(); NotifyWindow notifyWindow = new NotifyWindow("错误", "保存失败"); notifyWindow.Show(); if (addTaxPayerEntity != null) { TaxPayerList.Remove(addTaxPayerEntity); addTaxPayerEntity = null; } IsBusy = false; } else { addTaxPayerEntity.Update(); AutoLinkDocumentFiles(addTaxPayerEntity, SelectTaxPayerEntity); } }
void SubOperation_Completed(object sender, EventArgs e) { SubmitOperation submitOperation = sender as SubmitOperation; if (submitOperation.HasError) { submitOperation.MarkErrorAsHandled(); NotifyWindow notifyWindow = new NotifyWindow("错误", "保存失败"); notifyWindow.Show(); if (addTaxPayerEntity != null) { TaxPayerList.Remove(addTaxPayerEntity); addTaxPayerEntity = null; } } else { NotifyWindow notifyWindow = new NotifyWindow("保存成功", "保存成功!"); notifyWindow.Show(); addTaxPayerEntity = null; LoadData(); } IsBusy = false; }