/// <summary> /// Constructor. /// </summary> public PasswordConfirmComponentControl(PasswordConfirmComponent component) : base(component) { _component = component; InitializeComponent(); _confirmDescription.DataBindings.Add("Text", _component, "Description", true, DataSourceUpdateMode.OnPropertyChanged); _passwordField.DataBindings.Add("Value", _component, "Password", true, DataSourceUpdateMode.OnPropertyChanged); AcceptButton = _okButton; }
/// <summary> /// Called by the host to assign this view to a component. /// </summary> public void SetComponent(IApplicationComponent component) { _component = (PasswordConfirmComponent)component; }