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;
 }
        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;
        }