Пример #1
0
 /// <summary>Initializes a new instance of the <see cref="AccountPrivileges"/> class.</summary>
 /// <param name="parent">The parent.</param>
 /// <param name="userName">Name of the user.</param>
 public LogonRights(LocalSecurityAuthority parent, string userName = null)
 {
     ctrl = parent; user = userName ?? CurrentUserName;
 }
Пример #2
0
 /// <summary>Initializes a new instance of the <see cref="AccountPrivileges"/> class.</summary>
 /// <param name="parent">The parent.</param>
 /// <param name="userName">Name of the user.</param>
 public AccountPrivileges(LocalSecurityAuthority parent, string userName = null)
 {
     ctrl = parent; user = userName ?? CurrentUserName;
 }