From 20f70e3446df19bf5d0faaae9f7bd58fd0fc4bcc Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 04 八月 2023 12:06:51 +0800
Subject: [PATCH] 轮询备份

---
 Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserMiddle.cs |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserMiddle.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserMiddle.cs
index efeb54a..f42233e 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserMiddle.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserMiddle.cs
@@ -19,11 +19,11 @@
 
         public static FrameLayout UserPageView = new FrameLayout ();
 
-        public static Button LinkStatusTip = new Button () {
-            Height = Application.GetRealHeight (36),
-            Width = Application.GetRealWidth (640),
-            BackgroundColor = SkinStyle.Current.LinkStatusTipColor
-        };
+        //public static Button LinkStatusTip = new Button () {
+        //    Height = Application.GetRealHeight (36),
+        //    Width = Application.GetRealWidth (640),
+        //    BackgroundColor = SkinStyle.Current.LinkStatusTipColor
+        //};
 
         public static PageLayout FavoritePageView = new PageLayout () {
             IsShowPoint = false,
@@ -70,7 +70,7 @@
             Width = Application.GetRealWidth (640),
             Height = Application.GetRealHeight (1136 - 126 - 90 - 90),
             BackgroundColor = SkinStyle.Current.ViewColor,
-            ScrollEnabled = false
+            ScrollEnabled = true
         };
         public static Button btnVersion = new Button () {
             Y = Application.GetRealHeight (1136 - 90 - 90),
@@ -323,7 +323,7 @@
             //IO.FileUtils.SaveEquipmentMessage (ud3, "3");
 #endif
             UserHomePage.FrameLayoutMain.AddChidren (UserPageView);
-            UserHomePage.FrameLayoutMain.AddChidren (LinkStatusTip);
+            //UserHomePage.FrameLayoutMain.AddChidren (LinkStatusTip);
 
             UserPageView.AddChidren (FavoritePageView);
             FavoritePageView.AddChidren (FavoriteBodyView);
@@ -347,6 +347,7 @@
                 SelectedBottomButton (btnFavorite);
                 curPageView = 0;
                 SharedMethod.SharedMethod.CurPageLayout = FavoritePageView;
+                MainPage.readDevciesStatus = true;
             };
 
             btnDevice.MouseUpEventHandler += (sender, e) => {
@@ -359,6 +360,7 @@
                     UserDeviceView.DeviceMode ();
                     SharedMethod.SharedMethod.CurPageLayout = DevicePageView;
                     curPageView = 1;
+                    MainPage.readDevciesStatus = true;
                 } catch { } finally {
                 }
             };
@@ -370,6 +372,7 @@
                 SelectedBottomButton (btnRoom);
                 curPageView = 2;
                 SharedMethod.SharedMethod.CurPageLayout = RoomPageView;
+                MainPage.readDevciesStatus = false;
             };
 
             btnSetting.MouseUpEventHandler += (sender, e) => {
@@ -383,6 +386,7 @@
                 SettingPageView.PageIndex = 0;
                 curPageView = 3;
                 SharedMethod.SharedMethod.CurPageLayout = SettingPageView;
+                MainPage.readDevciesStatus = false;
             };
             FavoritePageView.PageChange += (sender, e) => {
                 if (e < FavoritePageView.ChildrenCount - 1) {

--
Gitblit v1.8.0