From 5204bc34549ba4718158c447cbb3c74b39ffe163 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期一, 02 十二月 2019 16:03:29 +0800 Subject: [PATCH] 2019.12.2 --- ZigbeeApp/Shared/Phone/Device/CommonForm/SceneCategoryView.cs | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneCategoryView.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneCategoryView.cs index 9077953..7748134 100644 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneCategoryView.cs +++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneCategoryView.cs @@ -69,10 +69,12 @@ X = Application.GetRealWidth(179), Width = Application.GetRealWidth(844), Height = Application.GetRealHeight(400), - UnSelectedImagePath = scene.IconPath, + UnSelectedImagePath = scene.IconPathType == 0 ? scene.IconPath : System.IO.Path.Combine(Config.Instance.FullPath, scene.IconPath), Radius = (uint)Application.GetRealHeight(17) }; sceneRowLayout.AddChidren(sceneImg); + + sceneImg.SetViewShadow(true); var leftFL = new FrameLayout { @@ -314,19 +316,18 @@ CommonPage.Instance.ShowErrorInfoAlert(R.MyInternationalizationString.ControlSceneFail); } - var times = scene.SceneDelayTime; - scene.RemainTime = times; + scene.RemainTime = scene.SceneDelayTime; scene.SceneDelayTime = 0; new System.Threading.Thread(() => { - while (times > 0) + while (scene.RemainTime > 0) { System.Threading.Thread.Sleep(1000); Application.RunOnMainThread(() => { - SetTimeText(CommonFormResouce.GetTimeString(times)); + SetTimeText(CommonFormResouce.GetTimeString(scene.RemainTime)); }); - times -= 1; + scene.RemainTime -= 1; } Application.RunOnMainThread(() => { -- Gitblit v1.8.0