黄学彪
2019-12-12 7e863a33397f317ffc3ffd9288496d0e4f16aa66
ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs
@@ -48,6 +48,7 @@
        /// <param name="i_iasZone">传感器设备</param>
        public void ShowForm(IASZone i_iasZone)
        {
            UserView.HomePage.Instance.ScrollEnabled = false;
            deviceIASZone = i_iasZone;
            //设置头部信息
@@ -70,8 +71,6 @@
            var result = await this.GetDeviceAllDefultData();
            if (result == false)
            {
                //显示重新加载的界面
                this.ShowReLoadView();
                return;
            }
@@ -130,22 +129,19 @@
            btnLight.Y = Application.GetRealHeight(58);
            frameLight.AddChidren(btnLight);
            //进度条
            var seekBar = new HorizontalSeekBar();
            seekBar.X = Application.GetRealWidth(138);
            seekBar.Y = Application.GetRealHeight(152);
            seekBar.Width = Application.GetRealWidth(884);
            seekBar.Height = Application.GetRealHeight(84);
            seekBar.Max = lightLevelCount - 1;
            seekBar.BackgroundColor = 0xfff5f5f5;
            seekBar.ThumbColor = Common.ZigbeeColor.Current.GXCButtonBlueColor;
            seekBar.ProgressColor = 0xfffdb500;
            seekBar.Progress = lightLevelCount - Lightconfigure.levelSize;
            var seekBar = new SeekBarControl(900);
            seekBar.Gravity = Gravity.Frame;
            seekBar.X = Application.GetRealWidth(125);
            seekBar.Y = Application.GetRealHeight(142);
            seekBar.MaxValue = lightLevelCount - 1;
            seekBar.ProgressBarColor = 0xfffdb500;
            frameLight.AddChidren(seekBar);
            seekBar.ProgressChanged += (sender, value) =>
            seekBar.ProgressChangedEvent += (div, value) =>
            {
                //因为它的等级刻度从左往右是从大到小的
                this.Lightconfigure.levelSize = lightLevelCount - value;
            };
            seekBar.Progress = lightLevelCount - Lightconfigure.levelSize;
            //低
            var btnDown = new NormalViewControl(300, 50, true);
@@ -463,5 +459,18 @@
        }
        #endregion
        #region ■ 一般方法___________________________
        /// <summary>
        /// 界面关闭
        /// </summary>
        public override void CloseFormBefore()
        {
            UserView.HomePage.Instance.ScrollEnabled = true;
            base.CloseFormBefore();
        }
        #endregion
    }
}