From 66a9965c44ecc32a6696abca876ab9d1cd091584 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期五, 28 二月 2020 15:25:13 +0800 Subject: [PATCH] 2020.2.28 --- ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs | 24 ++++++++++++++++++++---- 1 files changed, 20 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs index 37253bc..015a7d6 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs @@ -69,7 +69,7 @@ frameBack.Height = Application.GetRealHeight(1300); frameBack.Y = Application.GetRealHeight(444); frameBack.BackgroundColor = 0xa1ffffff; - frameBack.SetCornerWithSameRadius(20, HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); + frameBack.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); bodyFrameLayout.AddChidren(frameBack); //妗屽竷鎺т欢 @@ -117,6 +117,7 @@ btnSensor.TextSize = 16; btnSensor.TextAlignment = TextAlignment.Center; btnSensor.TextColor = UserCenterColor.Current.TextColor2; + btnSensor.IsBold = true; frameSensor.AddChidren(btnSensor, ChidrenBindMode.BindEventOnly); //搴曠嚎 var btnSensorLine = new NormalViewControl(40, 10, true); @@ -132,8 +133,10 @@ //瀛椾綋澶у皬鍜岄鑹插彉鏇� btnSensor.TextColor = UserCenterColor.Current.TextGrayColor3; btnSensor.TextSize = 14; + btnSensor.IsBold = false; btnLog.TextColor = UserCenterColor.Current.TextColor2; btnLog.TextSize = 16; + btnLog.IsBold = true; btnLogLine.Visible = true; btnSensorLine.Visible = false; @@ -150,8 +153,10 @@ //瀛椾綋澶у皬鍜岄鑹插彉鏇� btnSensor.TextColor = UserCenterColor.Current.TextColor2; btnSensor.TextSize = 16; + btnSensor.IsBold = true; btnLog.TextColor = UserCenterColor.Current.TextGrayColor3; btnLog.TextSize = 14; + btnLog.IsBold = false; btnLogLine.Visible = false; btnSensorLine.Visible = true; @@ -185,7 +190,7 @@ btnIcon.ButtonClickEvent += (sender, e) => { //鑿滃崟鎺т欢 - var frameMenu = new TopRightMenuControl(2); + var frameMenu = new TopRightMenuControl(2, 2); //闃插尯鍒楄〃 string menu1 = Language.StringByID(R.MyInternationalizationString.uGarrisonAreaList); frameMenu.AddRowMenu(menu1, "Item/GarrisonList.png", "Item/GarrisonListSelected.png", () => @@ -423,6 +428,8 @@ } } } + //璋冩暣鍒楄〃鎺т欢楂樺害 + listView.AdjustChidrenFrameHeight(listView.frameTable, Application.GetRealHeight(46)); //寮�鍚紶鎰熷櫒鎶ヨ鐩戣 this.StartCheckDeviceAlarm(); //寮�鍚澶囧湪绾跨洃娴� @@ -483,7 +490,7 @@ var control = this.dicSensorStatuView[mainkey]; //鑾峰彇浼犳劅鍣ㄦ姤璀︿俊鎭殑缈昏瘧鏂囨湰 var msgInfo = HdlAlarmsLogic.Current.GetSensorAlarmInfo(device); - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { control?.SetSensoReportInfo(msgInfo); }); @@ -542,7 +549,16 @@ //鐣岄潰鍏抽棴 return; } - Common.LocalDevice.Current.GetDeviceListFromGateway(zbway, false, this.ReceiveDeviceStatuPush, ShowErrorMode.NO); + int statu = 0; + var list = Common.LocalDevice.Current.GetDeviceListFromGateway(zbway, ref statu, false, ShowErrorMode.NO); + if (statu != -1) + { + for (int i = 0; i < list.Count; i++) + { + //璁剧疆璁惧鍦ㄧ嚎鐘舵�� + this.ReceiveDeviceStatuPush(list[i]); + } + } } }); } -- Gitblit v1.8.0