public ComponentPropertyWrapViewModel(string propertyName, IPropertyValue propertyValue, string type, bool required)
        {
            mName = propertyName;

            mType = (CommonUtils.PropertyType)Enum.Parse(typeof(CommonUtils.PropertyType), type, true);
            mRequired = required;
            mPropertyValue = propertyValue;
            mErrorNumbericalValidationResult = new ValidationResult(string.Format("Field {0} is numerical", mName));
            mErrorRequiredValidationResult = new ValidationResult(string.Format("Field {0} is required", mName));
        }
 public ComponentTestingPropertyWrapViewModel(ControlSystemComponentTestingProperty componentTestingProperty, ControlSystemComponentTestingPropertyValue propertyValue)
 {
     mComponentTestingProperty = componentTestingProperty;
     mType = (CommonUtils.PropertyType)Enum.Parse(typeof(CommonUtils.PropertyType), componentTestingProperty.Type, true);
     var name = componentTestingProperty.Name;
     mRequired = componentTestingProperty.Required;
     mPropertyValue = propertyValue;
     mErrorNumbericalValidationResult = new ValidationResult(string.Format("Field {0} is numerical", name));
     mErrorRequiredValidationResult = new ValidationResult(string.Format("Field {0} is required", name));
     AcceptCommand = new DelegateCommand<object>(AcceptCommandHandler, CanModifyHandler);
 }