Exemplo n.º 1
0
        /// <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;
        }
Exemplo n.º 2
0
 public LabelPropertyValueEditor(DataEditorAttribute attribute)
     : base(attribute)
 {
 }