From c47c3ec2488961b3a006aaebcb03dba582f8b19b Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期四, 12 三月 2020 17:08:42 +0800 Subject: [PATCH] 2020-03-12-1 --- ZigbeeApp/Shared/Phone/Device/Category/SelectDelayTime.cs | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Category/SelectDelayTime.cs b/ZigbeeApp/Shared/Phone/Device/Category/SelectDelayTime.cs index dac1b70..227faea 100755 --- a/ZigbeeApp/Shared/Phone/Device/Category/SelectDelayTime.cs +++ b/ZigbeeApp/Shared/Phone/Device/Category/SelectDelayTime.cs @@ -67,7 +67,7 @@ var top = new TopFrameLayout(); AddChidren(top); top.InitTopview(); - top.SetTopTitle(R.MyInternationalizationString.AddScence); + top.SetTopTitle(R.MyInternationalizationString.AddDelayTime); top.backButton.MouseUpEventHandler += (sender, e) => { RemoveFromParent(); @@ -113,7 +113,7 @@ Height = Application.GetMinRealAverage(124), Width = Application.GetMinRealAverage(124), Gravity = Gravity.Center, - Radius = (uint)Application.GetRealHeight(124 / 2), + Radius = (uint)Application.GetRealHeight(58), UnSelectedImagePath = "Item/Timer.png" }; bg1.AddChidren(timeImg); @@ -126,6 +126,7 @@ Gravity = Gravity.CenterHorizontal, TextID = R.MyInternationalizationString.SelectTimeForAction, TextColor = ZigbeeColor.Current.GXCTextBlackColor, + TextSize=15, IsMoreLines = true }; bodyFrameLayout.AddChidren(tip); @@ -135,7 +136,7 @@ Y = Application.GetRealHeight(611), Height = Application.GetRealHeight(1126), BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - Radius = (uint)Application.GetRealHeight(17), + Radius = (uint)Application.GetRealHeight(58), }; bodyFrameLayout.AddChidren(midFL); @@ -179,9 +180,16 @@ confirmBtn.SetTitle(R.MyInternationalizationString.Save); confirmBtn.MouseUpEventHandler += (sender, e) => { - sceneTargetDevice.DelayTime = totalSecond; - selectedTimeAction?.Invoke(sceneTargetDevice); - RemoveFromParent(); + if (totalSecond == 0) + { + RemoveFromParent(); + } + else + { + sceneTargetDevice.DelayTime = totalSecond; + selectedTimeAction?.Invoke(sceneTargetDevice); + RemoveFromParent(); + } }; } -- Gitblit v1.8.0