From e22fdb94322e6cec38e5e4a9aec13d431a133fde Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期二, 28 四月 2020 16:32:35 +0800
Subject: [PATCH] 上传合并后的代码

---
 ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs |   28 +++++++++++++---------------
 1 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs b/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs
index cfbcfbf..fb67b15 100755
--- a/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs
+++ b/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs
@@ -187,7 +187,7 @@
             }
 
             //妫�娴嬫槸鍚︾粦瀹氭湁缃戝叧
-            if (this.CheckHadBindGateway() == false)
+            if (Common.Config.Instance.Home.IsVirtually == false && this.CheckHadBindGateway() == false)
             {
                 //鏄剧ず娌℃湁缁戝畾杩囩綉鍏崇殑鐣岄潰
                 this.ShowNoGatewayTip();
@@ -312,7 +312,7 @@
             bg.UnSelectedImagePath = "Item/NoBindGW.png";
             this.listBodyContr.frameTable.AddChidren(bg);
 
-            var tip = new NormalViewControl(Application.GetMinRealAverage(717), Application.GetMinRealAverage(58), false);
+            var tip = new NormalViewControl(this.GetPictrueRealSize(717), this.GetPictrueRealSize(58), false);
             tip.Y = Application.GetRealHeight(815);
             tip.Gravity = Gravity.CenterHorizontal;
             tip.TextID = R.MyInternationalizationString.NewAccountNeedBingGW;
@@ -573,7 +573,7 @@
             //璁惧璁℃暟
             int contrCount = 0;
             //X杞村潗鏍�(鍥剧墖宸﹁竟鏈変綑鐧�)
-            int XX = Application.GetMinRealAverage(44);
+            int XX = this.GetPictrueRealSize(44);
             //Y杞村潗鏍�
             int YY = 0;
             var listContr = new List<Controls.DeviceCardCommon>();
@@ -647,11 +647,11 @@
                     //璁惧璁℃暟
                     contrCount++;
                     //鍗$墖宸﹀彸涓よ竟鏈�14鐨勪綑鐧�,姣忎袱涓悗,X杞撮噸缃�
-                    XX = contrCount % 2 == 0 ? Application.GetMinRealAverage(44) : cardContr.Right + Application.GetMinRealAverage(20);
+                    XX = contrCount % 2 == 0 ? this.GetPictrueRealSize(44) : cardContr.Right + this.GetPictrueRealSize(20);
                     if (contrCount % 2 == 0)
                     {
                         //娌′袱涓箣鍚�,Y杞撮�掑
-                        YY = cardContr.Bottom + Application.GetMinRealAverage(15);
+                        YY = cardContr.Bottom + this.GetPictrueRealSize(15);
                     }
                     //鎺т欢璁板綍鍒扮紦瀛樹腑
                     this.dicDeviceCardControl[LocalDevice.Current.GetDeviceMainKeys(device)] = cardContr;
@@ -699,8 +699,8 @@
             var noFunction = new Button
             {
                 Y = Application.GetRealHeight(69),
-                Width = Application.GetMinRealAverage(683),
-                Height = Application.GetMinRealAverage(392),
+                Width = this.GetPictrueRealSize(683),
+                Height = this.GetPictrueRealSize(392),
                 Gravity = Gravity.CenterHorizontal,
                 UnSelectedImagePath = "Item/NoFunction.png"
             };
@@ -755,12 +755,12 @@
                 if (contrCount % 2 == 1)
                 {
                     //绗竴涓浐瀹�44
-                    XX = Application.GetMinRealAverage(44);
+                    XX = this.GetPictrueRealSize(44);
                 }
                 else
                 {
                     //绗簩涓槸44+鎺т欢瀹藉害+20浣欑櫧
-                    XX = Application.GetMinRealAverage(44) + this.dicDeviceCardControl[mainkey].Width + Application.GetMinRealAverage(20);
+                    XX = this.GetPictrueRealSize(44) + this.dicDeviceCardControl[mainkey].Width + this.GetPictrueRealSize(20);
                 }
 
                 //姣忎袱涓箣鍚�,骞朵笖鏄涓�涓殑鏃跺��,Y杞撮�掑
@@ -769,7 +769,7 @@
                     //姹傚晢
                     int value = contrCount / 2;
                     //鎺т欢鐨勫簳閮ㄦ湁15鐨勯棿闅�
-                    YY = value * (this.dicDeviceCardControl[mainkey].Height + Application.GetMinRealAverage(15));
+                    YY = value * (this.dicDeviceCardControl[mainkey].Height + this.GetPictrueRealSize(15));
                 }
                 if (canMove == true)
                 {
@@ -1009,12 +1009,12 @@
                 if (contrCount % 2 == 1)
                 {
                     //绗竴涓浐瀹�44
-                    XX = Application.GetMinRealAverage(44);
+                    XX = this.GetPictrueRealSize(44);
                 }
                 else
                 {
                     //绗簩涓槸44+鎺т欢瀹藉害+20浣欑櫧
-                    XX = Application.GetMinRealAverage(44) + this.dicSceneCardControl[sceneId].Width + Application.GetMinRealAverage(20);
+                    XX = this.GetPictrueRealSize(44) + this.dicSceneCardControl[sceneId].Width + this.GetPictrueRealSize(20);
                 }
 
                 //姣忎袱涓箣鍚�,骞朵笖鏄涓�涓椂,Y杞撮�掑
@@ -1023,7 +1023,7 @@
                     //姹傚晢
                     int value = contrCount / 2;
                     //鎺т欢鐨勫簳閮ㄦ湁15鐨勯棿闅�
-                    YY = value * (this.dicSceneCardControl[sceneId].Height + Application.GetMinRealAverage(15));
+                    YY = value * (this.dicSceneCardControl[sceneId].Height + this.GetPictrueRealSize(15));
                 }
                 if (canMove == true)
                 {
@@ -1095,8 +1095,6 @@
                     Config.Instance.Save();
                     //鍒锋柊涓汉涓績鐨勫唴瀛樺強绾跨▼
                     await UserCenterLogic.InitUserCenterMenmoryAndThread();
-                    //鍒濆鍖栧叏閮ㄦ埧闂�
-                    HdlRoomLogic.Current.InitAllRoom();
 
                     Application.RunOnMainThread(() =>
                     {

--
Gitblit v1.8.0