void ServiceClient_BatchAddUserRoleCompleted(object sender, BatchAddUserRoleCompletedEventArgs e) { if (e.Error == null) { if (e.Result) { ViewInfosList.Clear(); //清空列表记录 Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ACCREDITUSERSUCCED")); RefreshUI(RefreshedTypes.CloseAndReloadData); } else { if (string.IsNullOrEmpty(e.IsResult)) { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR")); return; } else { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), "添加了相同的角色"); return; } } } else { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.Error.ToString()); return; } //throw new NotImplementedException(); }
void ServiceClient_BatchAddUserRoleCompleted(object sender, BatchAddUserRoleCompletedEventArgs e) { if (e.Error == null) { if (e.Result) { ViewInfosList.Clear(); //清空列表记录 Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ACCREDITUSERSUCCED")); RefreshUI(RefreshedTypes.CloseAndReloadData); } else { if (string.IsNullOrEmpty(e.IsResult)) { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR")); return; } else { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), "添加了相同的角色"); return; } } } else { Utility.ShowCustomMessage(MessageTypes.Message,Utility.GetResourceStr("ERROR"),e.Error.ToString()); return; } //throw new NotImplementedException(); }