/// <summary> /// 异步删除后,提示并再次获取数据 /// </summary> private void Del_ESurveyResultCompleted(object sender, Del_ESurveyResultCompletedEventArgs e) { loadbar.Stop(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } if (e.Result > 0) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", "EmployeeSurveyApp"), Utility.GetResourceStr("CONFIRM")); } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("FAILED"), Utility.GetResourceStr("DELETEFAILED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } GetData(); }
/// <summary> /// 异步删除后,提示并再次获取数据 /// </summary> private void Del_ESurveyResultCompleted(object sender, Del_ESurveyResultCompletedEventArgs e) { loadbar.Stop(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } if (e.Result > 0) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", "EmployeeSurveyApp"), Utility.GetResourceStr("CONFIRM")); } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("FAILED"), Utility.GetResourceStr("DELETEFAILED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } GetData(); }