/// <summary>
        /// Constructor
        /// </summary>
        public UserEditorComponentControl(UserEditorComponent component)
            : base(component)
        {
            InitializeComponent();

            _component = component;

            _userId.DataBindings.Add("Value", _component, "UserId", true, DataSourceUpdateMode.OnPropertyChanged);
            _userId.DataBindings.Add("ReadOnly", _component, "IsUserIdReadOnly", true, DataSourceUpdateMode.OnPropertyChanged);

            _displayName.DataBindings.Add("Value", _component, "DisplayName", true, DataSourceUpdateMode.OnPropertyChanged);

            _emailAddress.DataBindings.Add("Value", _component, "EmailAddress", true, DataSourceUpdateMode.OnPropertyChanged);

            _validFrom.DataBindings.Add("Value", _component, "ValidFrom", true, DataSourceUpdateMode.OnPropertyChanged);
            _validUntil.DataBindings.Add("Value", _component, "ValidUntil", true, DataSourceUpdateMode.OnPropertyChanged);
            _accountEnabledCheckBox.DataBindings.Add("Checked", _component, "AccountEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _passwordExpiryDate.DataBindings.Add("Value", _component, "PasswordExpiryTime", true, DataSourceUpdateMode.OnPropertyChanged);

            _authorityGroups.Table = _component.Groups;
            _acceptButton.DataBindings.Add("Enabled", _component, "AcceptEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
        }
Esempio n. 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public UserEditorComponentControl(UserEditorComponent component)
            : base(component)
        {
            InitializeComponent();

            _component = component;

            _userId.DataBindings.Add("Value", _component, "UserId", true, DataSourceUpdateMode.OnPropertyChanged);
            _userId.DataBindings.Add("ReadOnly", _component, "IsUserIdReadOnly", true, DataSourceUpdateMode.OnPropertyChanged);

			_displayName.DataBindings.Add("Value", _component, "DisplayName", true, DataSourceUpdateMode.OnPropertyChanged);

            _emailAddress.DataBindings.Add("Value", _component, "EmailAddress", true, DataSourceUpdateMode.OnPropertyChanged);

            _validFrom.DataBindings.Add("Value", _component, "ValidFrom", true, DataSourceUpdateMode.OnPropertyChanged);
            _validUntil.DataBindings.Add("Value", _component, "ValidUntil", true, DataSourceUpdateMode.OnPropertyChanged);
            _accountEnabledCheckBox.DataBindings.Add("Checked", _component, "AccountEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _passwordExpiryDate.DataBindings.Add("Value", _component, "PasswordExpiryTime", true, DataSourceUpdateMode.OnPropertyChanged);

            _authorityGroups.Table = _component.Groups;
            _acceptButton.DataBindings.Add("Enabled", _component, "AcceptEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
        }
Esempio n. 3
0
 public void SetComponent(IApplicationComponent component)
 {
     _component = (UserEditorComponent)component;
 }
 public void SetComponent(IApplicationComponent component)
 {
     _component = (UserEditorComponent)component;
 }