HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-05-18 b0505adb3ea1ba3f1812ee1046499410c8ea57f5
ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/AirConditionerZbGatewayDirectionForm.cs
@@ -30,23 +30,22 @@
        {
            //图片
            var framePic = new FrameLayout();
            framePic.Width = this.GetPictrueRealSize(893);
            framePic.Height = this.GetPictrueRealSize(852);
            framePic.Width = this.GetPictrueRealSize(842);
            framePic.Height = this.GetPictrueRealSize(764);
            framePic.Gravity = Gravity.CenterHorizontal;
            framePic.Y = Application.GetRealHeight(75);
            framePic.Y = Application.GetRealHeight(78);
            bodyFrameLayout.AddChidren(framePic);
            var btnPic = new PicViewControl(framePic.Width, framePic.Height, false);
            btnPic.UnSelectedImagePath = "Instruct/AirConditionerZbGateway.png";
            framePic.AddChidren(btnPic);
            //绿色指示灯闪烁
            var btnGreanLinght = new NormalViewControl(this.GetPictrueRealSize(475), this.GetPictrueRealSize(45), false);
            btnGreanLinght.X = this.GetPictrueRealSize(415);
            btnGreanLinght.Y = this.GetPictrueRealSize(272);
            //DATA绿色指示灯闪烁
            var btnGreanLinght = new NormalViewControl(this.GetPictrueRealSize(512), this.GetPictrueRealSize(45), false);
            btnGreanLinght.Y = this.GetPictrueRealSize(352);
            btnGreanLinght.TextAlignment = TextAlignment.Center;
            btnGreanLinght.TextColor = UserCenterColor.Current.TextGrayColor3;
            btnGreanLinght.TextSize = 10;
            btnGreanLinght.TextID = R.MyInternationalizationString.uGreanPilotLampLinght;
            btnGreanLinght.TextID = R.MyInternationalizationString.uDataGreanPilotLampLinght;
            framePic.AddChidren(btnGreanLinght);
            //长按5秒
@@ -55,17 +54,16 @@
            {
                textMsg = string.Format(textMsg, "5");
            }
            var btnSecond = new NormalViewControl(this.GetPictrueRealSize(360), this.GetPictrueRealSize(45), false);
            btnSecond.X = this.GetPictrueRealSize(573);
            btnSecond.Y = this.GetPictrueRealSize(718);
            var btnSecond = new NormalViewControl(this.GetPictrueRealSize(167), this.GetPictrueRealSize(45), false);
            btnSecond.Y = this.GetPictrueRealSize(629);
            btnSecond.TextColor = UserCenterColor.Current.TextGrayColor3;
            btnSecond.TextSize = 10;
            btnSecond.Text = textMsg;
            btnSecond.TextAlignment = TextAlignment.Center;
            framePic.AddChidren(btnSecond);
            //长按图示按键5秒以上,指示灯
            //变绿闪烁,进入配网状态
            //绿灯每5秒闪烁一次则入网成功
            //长按编程按键5秒,DATA绿色LED闪烁,
            //频率为亮0.5秒,灭0.5秒
            string[] msgArry = Language.StringByID(R.MyInternationalizationString.uAddAirConditionerZbGatewayMsg).Split(new string[] { "{0}" }, StringSplitOptions.RemoveEmptyEntries);
            var msg1 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false);
@@ -83,15 +81,6 @@
            msg2.TextColor = UserCenterColor.Current.TextGrayColor3;
            msg2.TextAlignment = TextAlignment.Center;
            bodyFrameLayout.AddChidren(msg2);
            var msg3 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false);
            msg3.Y = msg2.Bottom;
            if (msgArry.Length > 2)
            {
                msg3.Text = msgArry[2];
            }
            msg3.TextColor = UserCenterColor.Current.TextGrayColor3;
            msg3.TextAlignment = TextAlignment.Center;
            bodyFrameLayout.AddChidren(msg3);
        }
        #endregion