Esempio n. 1
0
 public PropertyContainer(Models.WindowsUserConfiguration protocolObject) : base(BindingState.Bound)
 {
     this.LoginModeProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.MapNullableEnum <Models.LoginMode, Common.LoginMode>(protocolObject.LoginMode),
         nameof(LoginMode),
         BindingAccess.Read);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the UserAccount class.
 /// </summary>
 /// <param name="name">The name of the user Account.</param>
 /// <param name="password">The password for the user Account.</param>
 /// <param name="elevationLevel">The elevation level of the user
 /// Account.</param>
 /// <param name="linuxUserConfiguration">The Linux-specific user
 /// configuration for the user Account.</param>
 /// <param name="windowsUserConfiguration">The Windows-specific user
 /// configuration for the user Account.</param>
 public UserAccount(string name, string password, ElevationLevel?elevationLevel = default(ElevationLevel?), LinuxUserConfiguration linuxUserConfiguration = default(LinuxUserConfiguration), WindowsUserConfiguration windowsUserConfiguration = default(WindowsUserConfiguration))
 {
     Name                     = name;
     Password                 = password;
     ElevationLevel           = elevationLevel;
     LinuxUserConfiguration   = linuxUserConfiguration;
     WindowsUserConfiguration = windowsUserConfiguration;
     CustomInit();
 }