예제 #1
0
 /// <summary>
 /// Default/Initialize constructor.
 /// </summary>
 /// <param name="dialogType">determines the behaviour of dialog (select user or user groups)</param>
 public EntityPickerDialog(EntityPickerDialogType dialogType = EntityPickerDialogType.Users)
 {
     AllowedTypes = dialogType == EntityPickerDialogType.Users ? ObjectType.Users : ObjectType.Groups;
     DefaultLocations = Environment.UserDomainName == Environment.MachineName ? Location.LocalComputer : Location.JoinedDomain;
 }
예제 #2
0
 /// <summary>
 /// Default/Initialize constructor.
 /// </summary>
 /// <param name="dialogType">determines the behaviour of dialog (select user or user groups)</param>
 public EntityPickerDialog(EntityPickerDialogType dialogType = EntityPickerDialogType.Users)
 {
     AllowedTypes     = dialogType == EntityPickerDialogType.Users ? ObjectType.Users : ObjectType.Groups;
     DefaultLocations = Environment.UserDomainName == Environment.MachineName ? Location.LocalComputer : Location.JoinedDomain;
 }