/// <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> /// LoadSharedUserData method implementation /// </summary> internal virtual void LoadSharedUserData(IUserPropertiesDataObject control, bool disablesync = false) { if (usersFormView == null) { return; } RegistrationList registrations = GetSharedUserData(); userPropertiesControl.SetUserControlData(registrations, disablesync); }
/// <summary> /// Constructor. /// </summary> public UserPropertyPage(UsersMMCListView frm, Type usercontrol, bool isnewuser = false) { isnew = isnewuser; usersFormView = frm; if (usercontrol.Equals(typeof(UserPropertiesControl))) { this.Control = new UserPropertiesControl(this); userPropertiesControl = this.Control as IUserPropertiesDataObject; this.Title = "Général"; } else { this.Control = new UserPropertiesKeysControl(this); userPropertiesControl = this.Control as IUserPropertiesDataObject; this.Title = "Clé"; } }
/// <summary> /// SyncSharedUserData method implementation /// </summary> internal virtual void SyncSharedUserData(IUserPropertiesDataObject control, bool isdirty) { if (usersFormView == null) { return; } RegistrationList registrations = GetSharedUserData(); userPropertiesControl.GetUserControlData(registrations); foreach (Registration reg in registrations) { reg.IsApplied = false; } SetSharedUserData(registrations); if (!Destroyed) { Dirty = isdirty; } }
/// <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"; } }