From 652243206427f35a256400a149a1734085824cb9 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 02 九月 2020 17:35:03 +0800
Subject: [PATCH] 2020-09-02-4

---
 ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs |   89 ++++++++++++++++++++++++++++----------------
 1 files changed, 56 insertions(+), 33 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs b/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs
old mode 100644
new mode 100755
index 7fff6c6..deb3564
--- a/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs
@@ -10,6 +10,7 @@
 {
     public class SkipView:FrameLayout
     {
+        
         /// <summary>
         /// 鍏跺畠鐣岄潰璺宠繘鏉ョ殑鍏ュ彛
         /// </summary>
@@ -20,7 +21,6 @@
             {
                 case 0:
                     {
-
                         //new涓�涓柊閫昏緫瀵硅薄锛�
                         //鏂板姝e父鑷姩鍖栧叆鍙�
                         Common.Logic.CurrentLogic = new Common.Logic();
@@ -65,6 +65,7 @@
 
         }
         #region 鈼� 鑷姩鍖朹_________________________
+        public static bool If_once = true;//杩涙潵鍙涓�娆℃爣璇�;
         /// <summary>
         /// 鑷姩鍖栧姛鑳戒唬鐮佸叆鍙�
         /// </summary>
@@ -73,6 +74,19 @@
             //functionSceneAutoBodyView.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor;
             #region   ---鎺ㄨ崘妯℃澘鐨勭粍浠�
             //鎺ㄨ崘妯℃澘鑳屾櫙鎺т欢
+          
+           
+            var bjFrameLayout1 = new FrameLayout
+            {
+                Width = Application.GetRealWidth(1080 - 58),
+                Height = Application.GetRealHeight(50),
+                BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor,
+                X = Application.GetRealWidth(58),
+                //Radius = (uint)Application.GetRealHeight(50),
+                Y = Application.GetRealHeight(30),
+
+            };
+            functionSceneAutoBodyView.AddChidren(bjFrameLayout1);
             var bjFrameLayout = new FrameLayout
             {
                 Width = Application.GetRealWidth(1080 - 58),
@@ -81,10 +95,10 @@
                 X = Application.GetRealWidth(58),
                 //Radius = (uint)Application.GetRealHeight(50),
                 Y = Application.GetRealHeight(30),
-
             };
             functionSceneAutoBodyView.AddChidren(bjFrameLayout);
-            bjFrameLayout.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerBottomLeft);
+            bjFrameLayout1.SetCornerWithSameRadius(Application.GetRealHeight(17), HDLUtils.RectCornerTopLeft);
+            bjFrameLayout.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft|HDLUtils.RectCornerBottomLeft);
             //鍥炬爣鎺т欢
             var sigBtn = new Button
             {
@@ -241,7 +255,8 @@
             {
                 if (!Config.Instance.Home.IsVirtually)
                 {//铏氭嫙鐨勪笉鑾峰彇缃戝叧閫昏緫鍒楄〃
-                    //閲嶆柊鍒锋柊logic鍒楄〃
+                 //閲嶆柊鍒锋柊logic鍒楄〃
+                    If_once = true;
                     Common.Logic.LogicList.Clear();
                     Read(logicScrolView, no);
                 }
@@ -272,35 +287,40 @@
             {
                 if (!Config.Instance.Home.IsVirtually)//铏氭嫙鐨勪笉鑾峰彇缃戝叧閫昏緫鍒楄〃
                 {
-                    if (Common.Logic.LogicList.Count == 0)
-                    {
-                        var Idlist1 = await Send.GetLogicId(0);//
-                        var Idlist2 = await Send.GetLogicId(2);//闂ㄩ攣甯稿紑妯″紡
-                        if (Idlist1.Count != 0)
-                        {
-                            var listlogic1 = await Send.ReadList(Idlist1.Count, 0);
-                            for (int j = 0; j < listlogic1.Count; j++)
-                            {
-                                var logic = listlogic1[j];
-                                if (logic.LogicType != 0)
-                                {
-                                    continue;
-                                }
-                                Common.Logic.LogicList.Add(logic);
-                            }
-                        }
-                        if (Idlist2.Count != 0)
-                        {
-                            var listlogic2 = await Send.ReadList(Idlist2.Count, 2);
-                            for (int j = 0; j < listlogic2.Count; j++)
-                            {
-                                var logic = listlogic2[j];
-                                if (logic.LogicType != 2)
-                                {
-                                    continue;
-                                }
-                                Common.Logic.LogicList.Add(logic);
-                            }
+                    if (If_once)
+                    {
+                        if (Common.Logic.LogicList.Count == 0)
+                        {
+                            If_once = false;
+                            var Idlist1 = await Send.GetLogicId(0);//
+                            var Idlist2 = await Send.GetLogicId(2);//闂ㄩ攣甯稿紑妯″紡
+                            if (Idlist1.Count != 0)
+                            {
+                                var listlogic1 = await Send.ReadList(Idlist1.Count, 0);
+                                for (int j = 0; j < listlogic1.Count; j++)
+                                {
+                                    var logic = listlogic1[j];
+                                    if (logic.LogicType != 0)
+                                    {
+                                        continue;
+                                    }
+                                    Common.Logic.LogicList.Add(logic);
+                                }
+                            }
+                            if (Idlist2.Count != 0)
+                            {
+                                var listlogic2 = await Send.ReadList(Idlist2.Count, 2);
+                                for (int j = 0; j < listlogic2.Count; j++)
+                                {
+                                    var logic = listlogic2[j];
+                                    if (logic.LogicType != 2)
+                                    {
+                                        continue;
+                                    }
+                                    Common.Logic.LogicList.Add(logic);
+                                }
+                            }
+
                         }
                     }
                 }
@@ -314,6 +334,7 @@
             CommonPage.Loading.Hide();
         }
         static RowLayout selectedRow = new RowLayout() { Tag = "0" };//璁板綍宸︽粦鐘舵��
+       
         /// <summary>
         /// 鍔犺浇鑷姩鍖栧垪琛ㄧ晫闈�
         /// </summary>
@@ -863,6 +884,8 @@
             return false;
         }
 
+  
+
     }
 }
 

--
Gitblit v1.8.0