public UserRoleDialog(UserRoleDialogOptions opt) : base(opt) { permissions = new RoleCheckEditor(this.ById("Roles")); UserRoleService.List(new UserRoleListRequest { UserID = options.UserID, }, response => { permissions.Value = response.Entities.Select(x => x.ToString()).ToList(); }); }