public void Refresh() { var roles = component.GetAllRoles(); this.Roles.Refill(roles); if (this.SelectedUser != null && this.SelectedUser.AssignedRole != null) { this.SelectedRole = (from r in this.Roles where r.Name == this.SelectedUser.AssignedRole.Name select r).FirstOrDefault(); } }