Changeset 15632


Ignore:
Timestamp:
01/19/18 03:29:24 (19 months ago)
Author:
swagner
Message:

#2877: Improved User Administration GUI

  • sorted users, groups and roles by name
  • made password textbox in password reset dialog read-only
Location:
branches/2877_HiveImprovements
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2877_HiveImprovements/HeuristicLab.Clients.Access.Administration/3.3/AccessAdministrationClient.cs

    r15583 r15632  
    2121
    2222using System;
     23using System.Linq;
    2324using HeuristicLab.Clients.Common;
    2425using HeuristicLab.Common;
     
    5354    public void RefreshUsers() {
    5455      users = new ItemList<User>();
    55       users.AddRange(CallAccessService<ItemList<User>>(s => new ItemList<User>(s.GetAllUsers())));
     56      users.AddRange(CallAccessService<ItemList<User>>(s => new ItemList<User>(s.GetAllUsers().OrderBy(x => x.UserName))));
    5657    }
    5758
     
    6263    public void RefreshUserGroups() {
    6364      Groups = new ItemList<UserGroup>();
    64       Groups.AddRange(CallAccessService<ItemList<UserGroup>>(s => new ItemList<UserGroup>(s.GetAllUserGroups())));
     65      Groups.AddRange(CallAccessService<ItemList<UserGroup>>(s => new ItemList<UserGroup>(s.GetAllUserGroups().OrderBy(x => x.Name))));
    6566    }
    6667
     
    7172    public void RefreshRoles() {
    7273      Roles = new ItemList<Role>();
    73       Roles.AddRange(CallAccessService<ItemList<Role>>(s => new ItemList<Role>(s.GetRoles())));
     74      Roles.AddRange(CallAccessService<ItemList<Role>>(s => new ItemList<Role>(s.GetRoles().OrderBy(x => x.Name))));
    7475    }
    7576
  • branches/2877_HiveImprovements/HeuristicLab.Clients.Access.Administration/3.3/Views/PasswordDisplayDialog.Designer.cs

    r15583 r15632  
    7272      // passwordTextbox
    7373      //
    74       this.passwordTextbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    75                   | System.Windows.Forms.AnchorStyles.Right)));
     74      this.passwordTextbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     75            | System.Windows.Forms.AnchorStyles.Right)));
    7676      this.passwordTextbox.Location = new System.Drawing.Point(102, 6);
    7777      this.passwordTextbox.Name = "passwordTextbox";
     78      this.passwordTextbox.ReadOnly = true;
    7879      this.passwordTextbox.Size = new System.Drawing.Size(203, 20);
    7980      this.passwordTextbox.TabIndex = 2;
  • branches/2877_HiveImprovements/HeuristicLab.Clients.Access/3.3/ServiceClients/User.cs

    r15583 r15632  
    5151
    5252    public override string ToString() {
    53       return UserName + "(" + FullName + ")";
     53      return UserName + " (" + FullName + ")";
    5454    }
    5555  }
Note: See TracChangeset for help on using the changeset viewer.