xm
2020-07-31 ecba45c93391066bc30c7bd602c3a7683fbb99a7
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs
@@ -11,18 +11,7 @@
    {
        #region ■ 变量声明___________________________
        /// <summary>
        /// 进度条可用时的背景色
        /// </summary>
        private uint ProgressBarEnableColor = 0;
        /// <summary>
        /// 进度条不可用时的背景色(默认灰色)
        /// </summary>
        public uint ProgressBarUnEnableColor = 0xffe8e8e8;
        /// <summary>
        /// 当前可用状态
        /// </summary>
        private bool nowEnable = true;
        private uint nowProgressBarColor = 0;
        /// <summary>
        /// 控件能否使用
        /// </summary>
@@ -30,20 +19,16 @@
        {
            set
            {
                //状态没有改变
                if (nowEnable == value) { return; }
                nowEnable = value;
                this.IsClickable = value;
                if (value == true)
                {
                    //原来的颜色
                    base.ProgressBarColor = ProgressBarEnableColor;
                    base.ProgressBarColor = nowProgressBarColor;
                }
                else
                {
                    //灰色
                    base.ProgressBarColor = ProgressBarUnEnableColor;
                    base.ProgressBarColor = 0xffe8e8e8;
                }
            }
        }
@@ -55,7 +40,7 @@
        {
            set
            {
                ProgressBarEnableColor = value;
                nowProgressBarColor = value;
                base.ProgressBarColor = value;
            }
        }