From d6fb0646531172f23648441c224cdcccd721b894 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期一, 14 十二月 2020 09:59:01 +0800
Subject: [PATCH] 请合并代码,完成晾衣架最终功能。

---
 ZigbeeApp/Shared/Phone/UserCenter/Guide/GuideHouseForm.cs |  125 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 125 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Guide/GuideHouseForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Guide/GuideHouseForm.cs
new file mode 100755
index 0000000..5b52f46
--- /dev/null
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Guide/GuideHouseForm.cs
@@ -0,0 +1,125 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Shared.Phone.UserCenter.Guide
+{
+    /// <summary>
+    /// 浣忓畢鐨勫紩瀵肩晫闈�
+    /// </summary>
+    public class GuideHouseForm : GuideCommonForm
+    {
+        #region 鈻� 鍙橀噺澹版槑___________________________
+
+        #endregion
+
+        #region 鈻� 鍒濆鍖朹____________________________
+
+        /// <summary>
+        /// 鏄剧ず鐣岄潰
+        /// </summary>
+        public override void ShowFrom()
+        {
+            base.ShowFrom();
+            base.btnHouse.Text = string.Empty;
+
+            //钂欎笂闃村奖
+            var frameback = new FrameLayout();
+            frameback.BackgroundColor = 0xad000000;
+            this.AddChidren(frameback);
+
+            //鎴戠殑瀹�
+            var btnHome = new NormalViewControl(100, 100, true);
+            btnHome.TextSize = 24;
+            btnHome.TextID = R.MyInternationalizationString.uMyHome;
+            btnHome.IsBold = true;
+            btnHome.Width = btnHome.GetRealWidthByText() + Application.GetRealWidth(20);
+            btnHome.BackgroundColor = UserCenterColor.Current.White;
+            btnHome.Radius = (uint)Application.GetRealHeight(100) / 2;
+            btnHome.TextAlignment = TextAlignment.Center;
+            btnHome.Y = Application.GetRealHeight(155);
+            btnHome.X = Application.GetRealWidth(35);
+            frameback.AddChidren(btnHome);
+
+            //绠ご
+            var btnArrows = new PicViewControl(153, 102);
+            btnArrows.UnSelectedImagePath = "Guide/Arrows2.png";
+            btnArrows.X = Application.GetRealWidth(500);
+            btnArrows.Y = Application.GetRealHeight(155);
+            frameback.AddChidren(btnArrows);
+
+            //闀挎寜鈥滄垜鐨勫鈥漿0}鍙垏鎹㈡垜鐨勪綇瀹�
+            var btnMsg = new NormalViewControl(387, 150, true);
+            btnMsg.Text = Language.StringByID(R.MyInternationalizationString.uLongClickMyHomeCanChangedHome).Replace("{0}", "\r\n");
+            btnMsg.TextAlignment = TextAlignment.Center;
+            btnMsg.TextColor = UserCenterColor.Current.White;
+            btnMsg.TextSize = 18;
+            btnMsg.IsBold = true;
+            btnMsg.IsMoreLines = true;
+            btnMsg.X = Application.GetRealWidth(576);
+            btnMsg.Y = Application.GetRealHeight(317);
+            frameback.AddChidren(btnMsg);
+
+            var frameHomeBack = new FrameLayout();
+            frameHomeBack.Width = Application.GetRealWidth(449);
+            frameHomeBack.Height = Application.GetRealHeight(475);
+            frameHomeBack.X = Application.GetRealWidth(35);
+            frameHomeBack.Y = Application.GetRealHeight(255);
+            frameHomeBack.BackgroundImagePath = "Item/SelectHouse.png";
+            frameback.AddChidren(frameHomeBack);
+
+            //閫夋嫨浣忓畢
+            var rowSelect = new FrameRowControl();
+            rowSelect.Y = Application.GetRealHeight(23);
+            rowSelect.Height = Application.GetRealHeight(150);
+            rowSelect.UseClickStatu = false;
+            frameHomeBack.AddChidren(rowSelect);
+            var btnSelect = rowSelect.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.ChangeHome), 350);
+            btnSelect.IsBold = true;
+            btnSelect.X = Application.GetRealWidth(81);
+            btnSelect.Y = Application.GetRealHeight(12);
+
+            //鎴戠殑瀹�
+            var rowFrame1 = new FrameRowControl();
+            rowFrame1.UseClickStatu = false;
+            rowFrame1.Y = rowSelect.Bottom;
+            rowFrame1.Height = Application.GetRealHeight(150);
+            frameHomeBack.AddChidren(rowFrame1);
+            //鍥炬爣
+            var btnIcon1 = rowFrame1.AddLeftIcon(81);
+            btnIcon1.UnSelectedImagePath = "Item/HouseSelected.png";
+            //鏄剧ず鏂囧瓧
+            var btnText1 = rowFrame1.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uMyHome), 300);
+            btnText1.IsBold = true;
+            btnText1.X = Application.GetRealWidth(173);
+            //搴曠嚎
+            var btnLine1 = rowFrame1.AddBottomLine();
+            btnLine1.X = Application.GetRealWidth(81);
+
+            //鍔炲叕瀹�
+            var rowFrame2 = new FrameRowControl();
+            rowFrame2.UseClickStatu = false;
+            rowFrame2.Y = rowFrame1.Bottom;
+            rowFrame2.Height = Application.GetRealHeight(150);
+            frameHomeBack.AddChidren(rowFrame2);
+            //鍥炬爣
+            var btnIcon2 = rowFrame2.AddLeftIcon(81);
+            btnIcon2.UnSelectedImagePath = "Guide/WorkRoomIcon.png";
+            //鏄剧ず鏂囧瓧
+            var btnText2 = rowFrame2.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uWorkRoom), 300);
+            btnText2.X = Application.GetRealWidth(173);
+            btnText2.TextColor = UserCenterColor.Current.TextGrayColor1;
+
+            //鎴戠煡閬撲簡
+            var btnKnwon = this.AddIKnwonButton();
+            btnKnwon.ButtonClickEvent += (sender, e) =>
+            {
+                this.RemoveFromParent();
+                var form = new GuideRoomForm();
+                form.ShowFrom();
+            };
+        }
+
+        #endregion
+    }
+}

--
Gitblit v1.8.0