Example #1
0
        /// <summary>
        /// 隐藏框
        /// </summary>
        /// <returns></returns>
        public HiddenDescriptor AsHidden()
        {
            HiddenDescriptor tag = new HiddenDescriptor(_modelType, _key);

            tag.DataType           = _dataType;
            _attributes[this._key] = tag;
            return(tag);
        }
Example #2
0
        /// <summary>
        /// 隐藏框
        /// </summary>
        /// <returns></returns>
        public HiddenDescriptor AsHidden()
        {
            HiddenDescriptor tag = new HiddenDescriptor(_modelType, _key);

            if (_attributes.ContainsKey(this._key))
            {
                _attributes.Remove(this._key);
            }
            tag.DataType = _dataType;
            tag.IsHidden = true;
            _attributes.Add(this._key, tag);
            return(tag);
        }