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/GuideForm1.cs |   92 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 92 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Guide/GuideForm1.cs b/ZigbeeApp/Shared/Phone/UserCenter/Guide/GuideForm1.cs
new file mode 100755
index 0000000..6151e7f
--- /dev/null
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Guide/GuideForm1.cs
@@ -0,0 +1,92 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Shared.Phone.UserCenter.Guide
+{
+    /// <summary>
+    /// 寮曞鐣岄潰1
+    /// </summary>
+    public class GuideForm1 : GuideCommonForm
+    {
+        #region 鈻� 鍒濆鍖朹____________________________
+
+        /// <summary>
+        /// 鏄剧ず鐣岄潰
+        /// </summary>
+        public override void ShowFrom()
+        {
+            base.ShowFrom();
+
+            //钂欎笂闃村奖
+            var frameBack = new FrameLayout();
+            frameBack.BackgroundColor = 0xad000000;
+            this.AddChidren(frameBack);
+
+            var frameleft = new FrameLayout();
+            frameleft.Width = Application.GetRealWidth(115);
+            frameleft.BackgroundColor = 0xff252525;
+            frameBack.AddChidren(frameleft);
+
+            //鍙虫粦杩涘叆鎴块棿鍒楄〃
+            var btnMsg = new NormalViewControl(300, 75, true);
+            btnMsg.TextID = R.MyInternationalizationString.uSlideRightToRoomList;
+            btnMsg.TextSize = 18;
+            btnMsg.IsBold = true;
+            btnMsg.TextColor = UserCenterColor.Current.White;
+            btnMsg.X = Application.GetRealWidth(132);
+            btnMsg.Y = Application.GetRealHeight(961);
+            btnMsg.Width = btnMsg.GetRealWidthByText();
+            frameBack.AddChidren(btnMsg);
+
+            //鍥炬爣
+            var btnIcon = new IconViewControl(69);
+            btnIcon.X = btnMsg.Right + Application.GetRealWidth(52);
+            btnIcon.Y = btnMsg.Y + Application.GetRealHeight(3);
+            btnIcon.UnSelectedImagePath = "Guide/RightIcon.png";
+            frameBack.AddChidren(btnIcon);
+
+            //鎵嬫寚鍥炬爣
+            var btnFinger = new PicViewControl(102, 93);
+            btnFinger.UnSelectedImagePath = "Guide/Finger.png";
+            btnFinger.X = Application.GetRealWidth(130);
+            btnFinger.Y = btnMsg.Bottom + Application.GetRealWidth(32);
+            frameBack.AddChidren(btnFinger);
+
+            //鎴戠煡閬撲簡
+            var btnKnwon = this.AddIKnwonButton();
+            btnKnwon.ButtonClickEvent += (sender, e) =>
+            {
+                this.RemoveFromParent();
+                var form = new GuideForm2();
+                form.ShowFrom();
+            };
+
+            HdlThreadLogic.Current.RunThread(() =>
+            {
+                int index = 0;
+                int oldValue = Application.GetRealWidth(130);
+                int moveValue = Application.GetRealWidth(50);
+                while (this.Parent != null)
+                {
+                    index++;
+                    HdlThreadLogic.Current.RunMain(() =>
+                    {
+                        if (index >= 10)
+                        {
+                            btnFinger.X = oldValue;
+                            index = 0;
+                        }
+                        else
+                        {
+                            btnFinger.X += moveValue;
+                        }
+                    }, ShowErrorMode.NO);
+                    System.Threading.Thread.Sleep(300);
+                }
+            });
+        }
+
+        #endregion
+    }
+}

--
Gitblit v1.8.0