void permClient_GetRoleEntityIDListInfosByRoleIDNewToUserRoleAppCompleted(object sender, GetRoleEntityIDListInfosByRoleIDNewToUserRoleAppCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); if (e.Error != null) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.ToString()); return; } if (!e.Cancelled) { if (e.Result != null) { tmpEditRoleEntityLIst = e.Result.ToList(); foreach (V_RoleEntity menu in tmpEditRoleEntityLIst) { tmpRoleEntityIDsList.Add(menu.ROLEENTITYMENUID); } ListShowMenus = e.listmenu.ToList(); SelectedMenus = ListShowMenus; permClient.GetPermissionByRoleIDSecondAsync(tmpRoleID); RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); } } }