Exemplo n.º 1
0
 public Control CreateControl(Manager manager, Control parent, PropertyInfo field, object existingData)
 {
     var textToShow = existingData == null ? "0" : existingData.ToString();
     var textBox = new ValidationTextField(manager, "0", Constants.RegexValidations.Number) { Text = textToShow, Name = field.Name, Parent = parent };
     textBox.Init();
     return textBox;
 }
Exemplo n.º 2
0
        public virtual Control CreateControl(Manager manager, Control parent, PropertyInfo field, object existingData)
        {
            var textToShow = existingData == null ? String.Empty : existingData.ToString();

            var textBox = new ValidationTextField(manager) { Name = field.Name, Parent = parent };
            textBox.Init();
            textBox.Text = textToShow;

            return textBox;
        }