黄学彪
2020-12-17 9f326f4000847e6167d8166fa2f6a66f53cb3734
ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/AirSwitchCloudContrDirectionForm.cs
@@ -7,7 +7,7 @@
    /// <summary>
    /// 空气开关的添加步骤界面
    /// </summary>
    public class AirSwitchCloudContrDirectionForm : EditorCommonForm
    public class AirSwitchCloudContrDirectionForm : DirectionCommonForm
    {
        #region ■ 初始化_____________________________
@@ -28,13 +28,10 @@
        /// </summary>
        private void InitMiddleFrame()
        {
            //清空bodyFrame
            this.ClearBodyFrame();
            //图片
            var framePic = new FrameLayout();
            framePic.Width = Application.GetMinRealAverage(858);
            framePic.Height = Application.GetMinRealAverage(850);
            framePic.Width = this.GetPictrueRealSize(858);
            framePic.Height = this.GetPictrueRealSize(850);
            framePic.Gravity = Gravity.CenterHorizontal;
            framePic.Y = Application.GetRealHeight(58);
            bodyFrameLayout.AddChidren(framePic);
@@ -43,36 +40,36 @@
            framePic.AddChidren(btnPic);
            //指示灯
            var btnLinght = new NormalViewControl(Application.GetMinRealAverage(100), Application.GetMinRealAverage(40), false);
            btnLinght.X = Application.GetMinRealAverage(487);
            btnLinght.Y = Application.GetMinRealAverage(202);
            var btnLinght = new NormalViewControl(this.GetPictrueRealSize(100), this.GetPictrueRealSize(40), false);
            btnLinght.X = this.GetPictrueRealSize(487);
            btnLinght.Y = this.GetPictrueRealSize(202);
            btnLinght.TextColor = UserCenterColor.Current.TextGrayColor3;
            btnLinght.TextSize = 8.45f;
            btnLinght.TextID = R.MyInternationalizationString.uPilotLamp;
            framePic.AddChidren(btnLinght);
            //工作
            var btnWork = new NormalViewControl(Application.GetMinRealAverage(60), Application.GetMinRealAverage(40), false);
            btnWork.X = Application.GetMinRealAverage(628);
            btnWork.Y = Application.GetMinRealAverage(113);
            var btnWork = new NormalViewControl(this.GetPictrueRealSize(70), this.GetPictrueRealSize(40), false);
            btnWork.X = this.GetPictrueRealSize(628);
            btnWork.Y = this.GetPictrueRealSize(113);
            btnWork.TextColor = UserCenterColor.Current.TextGrayColor3;
            btnWork.TextSize = 8.45f;
            btnWork.TextID = R.MyInternationalizationString.uWork;
            framePic.AddChidren(btnWork);
            //配对
            var btnPair = new NormalViewControl(Application.GetMinRealAverage(60), Application.GetMinRealAverage(40), false);
            btnPair.X = Application.GetMinRealAverage(628);
            btnPair.Y = Application.GetMinRealAverage(217);
            var btnPair = new NormalViewControl(this.GetPictrueRealSize(70), this.GetPictrueRealSize(40), false);
            btnPair.X = this.GetPictrueRealSize(628);
            btnPair.Y = this.GetPictrueRealSize(217);
            btnPair.TextColor = UserCenterColor.Current.TextGrayColor3;
            btnPair.TextSize = 8.45f;
            btnPair.TextID = R.MyInternationalizationString.uPair;
            framePic.AddChidren(btnPair);
            //红色指示灯闪烁
            var btnGreanLinght = new NormalViewControl(Application.GetMinRealAverage(455), Application.GetMinRealAverage(45), false);
            btnGreanLinght.X = Application.GetMinRealAverage(397);
            btnGreanLinght.Y = Application.GetMinRealAverage(295);
            var btnGreanLinght = new NormalViewControl(this.GetPictrueRealSize(455), this.GetPictrueRealSize(45), false);
            btnGreanLinght.X = this.GetPictrueRealSize(397);
            btnGreanLinght.Y = this.GetPictrueRealSize(295);
            btnGreanLinght.TextAlignment = TextAlignment.Center;
            btnGreanLinght.TextColor = UserCenterColor.Current.TextGrayColor3;
            btnGreanLinght.TextSize = 10;
@@ -108,37 +105,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