public LabelAndTextbox(CustomAttribute attribute, bool isFilled) { InitializeComponent(); attribute.SetMessages(); ControlLabel.Text = attribute.FieldName + ':'; LatTextBox.Text = LatTextBox.PlaceHolder = attribute.PlaceHolderText; if (isFilled) { LatTextBox.Filled(); } if (attribute.IsPassword) { LatTextBox.PasswordChar = '*'; } _attribute = attribute; LatTextBox.MaxLength = attribute.MaxLength; }
public LabelAndTextbox() { InitializeComponent(); LatTextBox.Filled(); }