public void SetUser(User user)
 {
     UserSelector.SetSelectedUser(user);
     PermissionsSelector.ShowPermissions(UsersPermissions.Where(i => i.Key.ID == user.ID).Single().Value);
 }
 public void SetUsersPermissions(Dictionary <User, IEnumerable <Permission> > usersPermissions)
 {
     this.UsersPermissions = usersPermissions;
     UserSelector.SetUsers(usersPermissions.Keys);
 }