xm
2020-07-21 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d
ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/CurtainAutoOpenDirectionForm.cs
@@ -7,7 +7,7 @@
    /// <summary>
    /// Zigbee智能开合帘电机的添加步骤界面
    /// </summary>
    public class CurtainAutoOpenDirectionForm : EditorCommonForm
    public class CurtainAutoOpenDirectionForm : DirectionCommonForm
    {
        #region ■ 初始化_____________________________
@@ -28,13 +28,10 @@
        /// </summary>
        private void InitMiddleFrame()
        {
            //清空bodyFrame
            this.ClearBodyFrame();
            //图片
            var framePic = new FrameLayout();
            framePic.Width = Application.GetMinRealAverage(873);
            framePic.Height = Application.GetMinRealAverage(665);
            framePic.Width = this.GetPictrueRealSize(873);
            framePic.Height = this.GetPictrueRealSize(665);
            framePic.Gravity = Gravity.CenterHorizontal;
            framePic.Y = Application.GetRealHeight(144);
            bodyFrameLayout.AddChidren(framePic);
@@ -43,9 +40,9 @@
            framePic.AddChidren(btnPic);
            //绿色指示灯缓慢闪烁
            var btnGreanLinght = new NormalViewControl(Application.GetMinRealAverage(449), Application.GetMinRealAverage(45), false);
            btnGreanLinght.X = Application.GetMinRealAverage(420);
            btnGreanLinght.Y = Application.GetMinRealAverage(343);
            var btnGreanLinght = new NormalViewControl(this.GetPictrueRealSize(449), this.GetPictrueRealSize(45), false);
            btnGreanLinght.X = this.GetPictrueRealSize(420);
            btnGreanLinght.Y = this.GetPictrueRealSize(343);
            btnGreanLinght.TextAlignment = TextAlignment.Center;
            btnGreanLinght.TextColor = UserCenterColor.Current.TextGrayColor3;
            btnGreanLinght.TextSize = 9;
@@ -58,9 +55,9 @@
            {
                textMsg = string.Format(textMsg, "5");
            }
            var btnSecond = new NormalViewControl(Application.GetMinRealAverage(400), Application.GetMinRealAverage(45), false);
            btnSecond.X = Application.GetMinRealAverage(478);
            btnSecond.Y = Application.GetMinRealAverage(568);
            var btnSecond = new NormalViewControl(this.GetPictrueRealSize(400), this.GetPictrueRealSize(45), false);
            btnSecond.X = this.GetPictrueRealSize(478);
            btnSecond.Y = this.GetPictrueRealSize(568);
            btnSecond.TextColor = UserCenterColor.Current.TextGrayColor3;
            btnSecond.TextSize = 9;
            btnSecond.Text = textMsg;
@@ -95,36 +92,6 @@
            msg3.TextColor = UserCenterColor.Current.TextGrayColor3;
            msg3.TextAlignment = TextAlignment.Center;
            bodyFrameLayout.AddChidren(msg3);
            //查看帮助
            var btnHelp = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(50), false);
            btnHelp.Y = Application.GetRealHeight(1388);
            btnHelp.TextSize = 12;
            btnHelp.TextAlignment = TextAlignment.Center;
            btnHelp.TextColor = UserCenterColor.Current.TextOrangeColor;
            btnHelp.Text = Language.StringByID(R.MyInternationalizationString.uSearchHelp);
            btnHelp.ButtonClickEvent += (sender, e) =>
            {
                var form = new DeviceDirectionHelpForm();
                form.AddForm(string.Empty);
            };
            bodyFrameLayout.AddChidren(btnHelp);
            //底线
            int lineWidth = btnHelp.GetRealWidthByText(12);
            var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
            btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
            btnLine.Gravity = Gravity.CenterHorizontal;
            btnLine.Y = btnHelp.Bottom - Application.GetRealHeight(8);
            bodyFrameLayout.AddChidren(btnLine);
            //下一步
            var btnNext = new BottomClickButton();
            btnNext.TextID = R.MyInternationalizationString.uNextway;
            bodyFrameLayout.AddChidren(btnNext);
            btnNext.ButtonClickEvent += (sender, e) =>
            {
                var form = new Device.DeviceSearchForm();
                form.AddForm(this.FormID);
            };
        }
        #endregion