From 73e6bfcd3eed1b4aa714af538891a3a62864b516 Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期四, 05 十二月 2019 14:34:59 +0800 Subject: [PATCH] 2019-12-05-1 --- ZigbeeApp/Shared/Phone/Device/Logic/DelayTime.cs | 23 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/DelayTime.cs b/ZigbeeApp/Shared/Phone/Device/Logic/DelayTime.cs index b198905..63dae7a 100644 --- a/ZigbeeApp/Shared/Phone/Device/Logic/DelayTime.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/DelayTime.cs @@ -19,7 +19,6 @@ public void Show(int isInt=0, bool edit=false) { - #region 鏈�涓婇潰鐨勫竷灞�浠g爜 var topRowLayout = new RowLayout @@ -129,8 +128,8 @@ BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor, }; middle.AddChidren(PickerViewfra); - - + PickerViewfra.SetCornerWithSameRadius(Application.GetRealHeight(50), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); + var mUIPickerView = new UIPickerView { @@ -165,10 +164,20 @@ { timevalue = int.Parse(Common.Logic.CurrentLogic.Actions[isInt]["DelayTime"].ToString()); - var minutevalue1 = timevalue / 60; - var secondvalue1 = timevalue % 60; - //鏇存柊鏈�鏂扮姸鎬� - mUIPickerView.setCurrentItems(minutevalue1, secondvalue1, 0); + if (timevalue > 3600) + { + //鏇存柊鏈�鏂扮姸鎬� + mUIPickerView.setCurrentItems(60, timevalue - 3600, 0); + } + else + { + + var minutevalue1 = timevalue / 60; + var secondvalue1 = timevalue % 60; + //鏇存柊鏈�鏂扮姸鎬� + mUIPickerView.setCurrentItems(minutevalue1, secondvalue1, 0); + } + value = timevalue; } string selectde = ""; -- Gitblit v1.8.0