Exemplo n.º 1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public UserPropertyPage(UsersFormView frm, Type usercontrol, int seeding, bool isnewuser = false)
 {
     isnew         = isnewuser;
     seed          = seeding.ToString();
     usersFormView = frm;
     if (usercontrol.Equals(typeof(UserPropertiesControl)))
     {
         this.Control          = new UserPropertiesControl(this);
         userPropertiesControl = this.Control as IUserPropertiesDataObject;
         this.Title            = res.PPAGEGENERALTITLE;
     }
     else if (usercontrol.Equals(typeof(UserPropertiesKeysControl)))
     {
         this.Control          = new UserPropertiesKeysControl(this);
         userPropertiesControl = this.Control as IUserPropertiesDataObject;
         this.Title            = res.PPAGEKEYSTITLE;
     }
     else if (usercontrol.Equals(typeof(UserCommonPropertiesControl)))
     {
         this.Control          = new UserCommonPropertiesControl(this);
         userPropertiesControl = this.Control as IUserPropertiesDataObject;
         this.Title            = res.PPAGECOMMONTITILE;
     }
     else if (usercontrol.Equals(typeof(UserAttestationsControl)))
     {
         this.Control          = new UserAttestationsControl(this);
         userPropertiesControl = this.Control as IUserPropertiesDataObject;
         this.Title            = res.PPAGEWEBAUTHNKEYSTITLE;
     }
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public UserPropertyPage(UsersFormView frm, Type usercontrol, int seeding, bool isnewuser = false)
 {
     isnew         = isnewuser;
     seed          = seeding.ToString();
     usersFormView = frm;
     if (usercontrol.Equals(typeof(UserPropertiesControl)))
     {
         this.Control          = new UserPropertiesControl(this);
         userPropertiesControl = this.Control as IUserPropertiesDataObject;
         this.Title            = "Général";
     }
     else if (usercontrol.Equals(typeof(UserPropertiesKeysControl)))
     {
         this.Control          = new UserPropertiesKeysControl(this);
         userPropertiesControl = this.Control as IUserPropertiesDataObject;
         this.Title            = "Clé";
     }
     else if (usercontrol.Equals(typeof(UserCommonPropertiesControl)))
     {
         this.Control          = new UserCommonPropertiesControl(this);
         userPropertiesControl = this.Control as IUserPropertiesDataObject;
         this.Title            = "Propriétés Communes";
     }
 }