/// <summary> /// 添加完成事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// void client_AddRandomGroupCompleted(object sender, AddRandomGroupCompletedEventArgs e) { if (e.Error != null && e.Error.Message != "") { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); RefreshUI(RefreshedTypes.HideProgressBar); } else { if (e.strMsg == "Repetition") { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("REPETITION", "RANDOMGROUPNAME")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("REPETITION", "RANDOMGROUPNAME"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); RefreshUI(RefreshedTypes.HideProgressBar); return; } //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information); RefreshUI(RefreshedTypes.HideProgressBar); FormType = FormTypes.Edit; if (isClose) { RefreshUI(RefreshedTypes.CloseAndReloadData); } else { RefreshUI(RefreshedTypes.All); } } }
/// <summary> /// 添加完成事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// void client_AddRandomGroupCompleted(object sender, AddRandomGroupCompletedEventArgs e) { if (e.Error != null && e.Error.Message != "") { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); RefreshUI(RefreshedTypes.HideProgressBar); } else { if (e.strMsg == "Repetition") { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("REPETITION", "RANDOMGROUPNAME")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("REPETITION", "RANDOMGROUPNAME"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); RefreshUI(RefreshedTypes.HideProgressBar); return; } //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information); RefreshUI(RefreshedTypes.HideProgressBar); FormType = FormTypes.Edit; if (isClose) RefreshUI(RefreshedTypes.CloseAndReloadData); else RefreshUI(RefreshedTypes.All); } }