0 1PropertyGrid显示

来源:互联网 发布:tf家族官方淘宝网 编辑:程序博客网 时间:2024/05/02 18:52

        [Browsable(true)]
        [DisplayName("属性指標値の有無")]
        public bool HAS_INDICATOR_BOOL
        {
            set
            {
                _has_indicator_bool = value;
                if (_has_indicator_bool)
                {
                    _has_indicator = 1;
                }
                else
                {
                    _has_indicator = 0;
                }
            }
            get
            {
                if (_has_indicator == 1)
                {
                    _has_indicator_bool = true;
                }
                else
                {
                    _has_indicator_bool = false;
                }
                return _has_indicator_bool; }
        }
        /// <summary>
        ///
        /// </summary>
        ///
        [Browsable(false)]
        [DisplayName("属性指標値の有無")]
        //[TypeConverter(typeof(IntBoolConverter))]
        public int HAS_INDICATOR
        {
            set { _has_indicator = value; }
            get { return _has_indicator; }
        }