/// <summary> /// Initializes a new instance of the <see cref="DataValueEditor"/> class. /// </summary> public DataValueEditor(DataEditorAttribute attribute) : this() { if (attribute == null) { throw new ArgumentNullException(nameof(attribute)); } var view = attribute.View; if (string.IsNullOrWhiteSpace(view)) { throw new ArgumentException("The attribute does not specify a view.", nameof(attribute)); } View = view; ValueType = attribute.ValueType; HideLabel = attribute.HideLabel; }
public LabelPropertyValueEditor(DataEditorAttribute attribute) : base(attribute) { }