From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期二, 30 八月 2022 09:37:38 +0800
Subject: [PATCH] 合并了IOS的代码
---
ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessApDirection3Form.cs | 139 +++++++++++++++++++++++++++++++---------------
1 files changed, 93 insertions(+), 46 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessApDirection3Form.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessApDirection3Form.cs
index 69bdde4..848d79f 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessApDirection3Form.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessApDirection3Form.cs
@@ -35,14 +35,6 @@
//娓呯┖bodyFrame
this.ClearBodyFrame();
- //鏌ョ湅甯姪
- var btnHelp = this.AddHelpControl();
- btnHelp.ButtonClickEvent += (sender, e) =>
- {
- var form = new AddGatewayHelpForm();
- form.AddForm("Ap");
- };
-
//涓嬩竴姝�
var btnNext = new BottomClickButton();
btnNext.TextID = R.MyInternationalizationString.uNextway;
@@ -50,12 +42,12 @@
btnNext.ButtonClickEvent += (sender, e) =>
{
//濡傛灉杩樻槸鐑偣妯″紡
- if (HdlWifiLogic.Current.IsGatewayHotspot == true)
- {
- //璇烽摼鎺ュ搴璚ifi
- this.ShowMassage(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uPleaseLinkHomeWifi));
- return;
- }
+ //if (HdlWifiLogic.Current.IsGatewayHotspot == true)
+ //{
+ // //璇烽摼鎺ュ搴璚ifi
+ // this.ShowMassage(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uPleaseLinkHomeWifi));
+ // return;
+ //}
var form = new WirelessApSearchForm();
this.AddFromAndRemoveNowForm(form);
};
@@ -63,47 +55,102 @@
//鍥剧墖
var framePic = new FrameLayout();
- framePic.Width = this.GetPictrueRealSize(861);
- framePic.Height = this.GetPictrueRealSize(245);
+ framePic.Width = this.GetPictrueRealSize(860);
+ framePic.Height = this.GetPictrueRealSize(239);
framePic.Gravity = Gravity.CenterHorizontal;
- framePic.Y = Application.GetRealHeight(363);
+ framePic.Y = Application.GetRealHeight(173);
framePic.BackgroundImagePath = "Gateway/WirelessApGatewaySearching.png";
bodyFrameLayout.AddChidren(framePic);
- //鎵嬫満鍘昏缃繛鎺ヨ矾鐢卞櫒
- string[] ArryMsg = Language.StringByID(R.MyInternationalizationString.uAddApWirelessGatewayMsg3).Split(new string[] { "{0}" }, StringSplitOptions.RemoveEmptyEntries);
- int yy = framePic.Bottom + Application.GetRealHeight(369);
- foreach (var msg in ArryMsg)
+ //缃戝叧杩炴帴璺敱鍣�
+ var btnTitle = new NormalViewControl(400, 60, true);
+ btnTitle.TextID = R.MyInternationalizationString.uGatewayConnectionRouter;
+ btnTitle.X = Application.GetRealWidth(75);
+ btnTitle.Y = framePic.Bottom + Application.GetRealHeight(210);
+ btnTitle.IsBold = true;
+ btnTitle.TextSize = 14;
+ bodyFrameLayout.AddChidren(btnTitle);
+
+ //1.绯荤粺閲嶅惎(SYS 7绉掑悗浜捣,鎸佺画50绉掑父浜�)
+ //2.缃戝叧姝e湪杩炴帴璺敱鍣�(SYS 3绉掑懆鏈熼棯鐑�,鐏厜鍋忔殫)
+ //3.缃戝叧杩炴帴璺敱鍣ㄦ垚鍔�(SYS 1绉掑懆鏈熼棯鐑�,鐏厜鍋忔殫)
+ //4.杩涜鎵嬫満APP鍜岀綉鍏崇殑杩炴帴
+ //5.棣栨杩炴帴灏嗘墜鏈轰繚鎸佸湪涓庣綉鍏冲悓涓�涓眬鍩熺綉涓�(WIFI)
+ //6.鐐瑰嚮"{1}"瀹屾垚鎵嬫満杩炴帴瀹跺涵WIFI
+ //7.杩涜"涓嬩竴姝�"鎿嶄綔
+ string[] ArryMsg = Language.StringByID(R.MyInternationalizationString.uAddWirelessApGatewayMsg3).Split(new string[] { "{0}" }, StringSplitOptions.RemoveEmptyEntries);
+ int yy = btnTitle.Bottom + Application.GetRealHeight(23);
+ for (int i = 0; i < ArryMsg.Length; i++)
{
- var btnMsg = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false);
- btnMsg.Text = msg;
- btnMsg.Y = yy;
- btnMsg.TextAlignment = TextAlignment.Center;
- btnMsg.TextColor = UserCenterColor.Current.TextGrayColor3;
- bodyFrameLayout.AddChidren(btnMsg);
- yy = btnMsg.Bottom;
+ if (i != 5)
+ {
+ var btnMsg = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false);
+ btnMsg.Text = ArryMsg[i];
+ btnMsg.Y = yy;
+ btnMsg.X = btnTitle.X;
+ btnMsg.TextColor = UserCenterColor.Current.TextGrayColor1;
+ btnMsg.TextSize = 12;
+ bodyFrameLayout.AddChidren(btnMsg);
+ yy = btnMsg.Bottom;
+ }
+ else
+ {
+ //3.鐐瑰嚮"{1}"瀹屾垚鎵嬫満杩炴帴瀹跺涵WIFI
+ var myArry = ArryMsg[i].Split(new string[] { "{1}" }, StringSplitOptions.RemoveEmptyEntries);
+ //3.鐐瑰嚮
+ var btnMsg1 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(52), false);
+ btnMsg1.Text = myArry[0];
+ btnMsg1.Y = yy;
+ btnMsg1.X = btnTitle.X;
+ btnMsg1.TextColor = UserCenterColor.Current.TextGrayColor1;
+ btnMsg1.TextSize = 12;
+ btnMsg1.Width = btnMsg1.GetRealWidthByText();
+ bodyFrameLayout.AddChidren(btnMsg1);
+
+ //鍘昏缃�
+ var btnSettion = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(52), false);
+ btnSettion.X = btnMsg1.Right;
+ btnSettion.Y = btnMsg1.Y;
+ btnSettion.TextSize = 12;
+ btnSettion.TextAlignment = TextAlignment.Center;
+ btnSettion.TextColor = 0xff0075ff;
+ btnSettion.Text = Language.StringByID(R.MyInternationalizationString.uGotoSettion);
+ btnSettion.Width = btnSettion.GetRealWidthByText();
+ bodyFrameLayout.AddChidren(btnSettion);
+ btnSettion.ButtonClickEvent += (sender, e) =>
+ {
+ HdlWifiLogic.Current.OpenAppWifiSettion();
+ btnNext.Visible = true;
+ };
+ //搴曠嚎
+ var btnLine1 = new NormalViewControl(btnSettion.Width, ControlCommonResourse.BottomLineHeight, false);
+ btnLine1.BackgroundColor = 0xff0075ff;
+ btnLine1.X = btnSettion.X;
+ btnLine1.Y = btnSettion.Bottom - Application.GetRealHeight(8);
+ bodyFrameLayout.AddChidren(btnLine1);
+
+ //瀹屾垚鎵嬫満杩炴帴瀹跺涵WIFI
+ var btnMsg2 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(52), false);
+ btnMsg2.Text = myArry[1];
+ btnMsg2.Y = btnMsg1.Y;
+ btnMsg2.X = btnSettion.Right;
+ btnMsg2.TextColor = UserCenterColor.Current.TextGrayColor1;
+ btnMsg2.TextSize = 12;
+ btnMsg2.Width = btnMsg2.GetRealWidthByText();
+ bodyFrameLayout.AddChidren(btnMsg2);
+
+ yy = btnMsg1.Bottom;
+ }
+
}
- //鍘昏缃�
- var btnSettion = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(50), false);
- btnSettion.Y = yy + Application.GetRealHeight(12);
- btnSettion.TextSize = 12;
- btnSettion.TextAlignment = TextAlignment.Center;
- btnSettion.TextColor = 0xff0075ff;
- btnSettion.Text = Language.StringByID(R.MyInternationalizationString.uGotoSettion);
- btnSettion.ButtonClickEvent += (sender, e) =>
+ //鏌ョ湅甯姪
+ var btnHelp = this.AddHelpControl();
+ btnHelp.ButtonClickEvent += (sender, e) =>
{
- HdlWifiLogic.Current.OpenAppWifiSettion();
- btnNext.Visible = true;
+ var form = new AddGatewayHelpForm();
+ form.AddForm("Ap");
};
- bodyFrameLayout.AddChidren(btnSettion);
- //搴曠嚎
- int lineWidth = btnSettion.GetRealWidthByText();
- var btnLine1 = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
- btnLine1.BackgroundColor = 0xff0075ff;
- btnLine1.Gravity = Gravity.CenterHorizontal;
- btnLine1.Y = btnSettion.Bottom - Application.GetRealHeight(8);
- bodyFrameLayout.AddChidren(btnLine1);
}
#endregion
--
Gitblit v1.8.0