/// <summary> /// 勾选框 /// </summary> /// <returns></returns> public CheckBoxDescriptor AsCheckBox() { CheckBoxDescriptor tag = new CheckBoxDescriptor(_modelType, _key); tag.DataType = _dataType; _attributes[this._key] = tag; return(tag); }
/// <summary> /// 勾选框 /// </summary> /// <returns></returns> public CheckBoxDescriptor AsCheckBox() { CheckBoxDescriptor tag = new CheckBoxDescriptor(_modelType, _key); if (_attributes.ContainsKey(this._key)) { _attributes.Remove(this._key); } tag.DataType = _dataType; _attributes.Add(this._key, tag); return(tag); }