From b7b3e92bed9c4553e30e2901a1877f088a5f8823 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期一, 04 十一月 2019 17:20:52 +0800 Subject: [PATCH] 2019.11.4 --- ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGwAddDirectionForm.cs | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGwAddDirectionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGwAddDirectionForm.cs new file mode 100755 index 0000000..4ee221d --- /dev/null +++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGwAddDirectionForm.cs @@ -0,0 +1,54 @@ +锘縰sing System; +namespace Shared.Phone.UserCenter.GatewayAdd +{ + /// <summary> + /// 娣诲姞鏈夌嚎缃戝叧鐨勬寚绀哄浘鐢婚潰 + /// </summary> + public class WiredGwAddDirectionForm : EditorCommonForm + { + /// <summary> + /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓) + /// </summary> + public void ShowForm() + { + //璁剧疆鏍囬淇℃伅 + base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uAddWiredGateway)); + + //鍒濆鍖栦腑閮ㄦ帶浠� + this.InitMiddleFrame(); + } + + /// <summary> + /// 鍒濆鍖栦腑閮ㄦ帶浠� + /// </summary> + private void InitMiddleFrame() + { + //娓呯┖bodyFrame + this.ClearBodyFrame(); + + //鍥炬爣 + var btnimage = new PicViewControl(915, 492, true); + btnimage.Y = Application.GetRealHeight(80); + btnimage.Gravity = Gravity.CenterHorizontal; + btnimage.UnSelectedImagePath = "Gateway/WiredGatewayInstruct.png"; + bodyFrameLayout.AddChidren(btnimage); + + //璇风‘淇濈綉鍏冲凡鐢ㄧ綉绾胯繛鎺� + var btnText = new NormalViewControl(bodyFrameLayout.Width, false); + btnText.TextID = R.MyInternationalizationString.ConfirmLineConnectMsg; + btnText.Y = btnimage.Bottom + Application.GetRealHeight(60); + bodyFrameLayout.AddChidren(btnText); + + //涓嬩竴姝� + var btnNext = new BottomClickButton(); + btnNext.TextID = R.MyInternationalizationString.uNextway; + bodyFrameLayout.AddChidren(btnNext); + + btnNext.MouseUpEventHandler += (sender, e) => + { + var form = new WiredGatewaySearchForm(); + base.AddFromAndRemoveNowForm(form); + }; + } + } +} -- Gitblit v1.8.0