/// <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; }
/// <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; }