예제 #1
0
        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;
        }
예제 #2
0
 public LabelAndTextbox()
 {
     InitializeComponent();
     LatTextBox.Filled();
 }