From 163777d8a2cb7cfa469f54a7042528870ebc10a3 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 09 十二月 2019 17:46:20 +0800
Subject: [PATCH] 一个新版本

---
 ZigbeeApp/Shared/Phone/Device/Logic/DelayTime.cs |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/DelayTime.cs b/ZigbeeApp/Shared/Phone/Device/Logic/DelayTime.cs
index d712314..788b4f4 100755
--- a/ZigbeeApp/Shared/Phone/Device/Logic/DelayTime.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/DelayTime.cs
@@ -17,9 +17,8 @@
             Tag = "Logic";
         }
 
-        public void Show(int isInt=0, bool edit=false)
+        public void Show(int isInt = 0, bool edit = false)
         {
-            
 
             #region  鏈�涓婇潰鐨勫竷灞�浠g爜
             var topRowLayout = new RowLayout
@@ -79,7 +78,6 @@
             };
             this.AddChidren(middle);
 
-
             var blancolor = new FrameLayout
             {
                 Width = Application.GetMinRealAverage(200),
@@ -115,7 +113,7 @@
                 Height = Application.GetMinRealAverage(60),
                 X = Application.GetRealWidth(300),
                 Y = blancolor.Bottom + Application.GetRealHeight(50),
-                TextID =MyInternationalizationString.createtimetext,
+                TextID = MyInternationalizationString.createtimetext,
                 TextColor = ZigbeeColor.Current.LogicTextBlackColor,
                 TextSize = 15,
 
@@ -130,7 +128,6 @@
             };
             middle.AddChidren(PickerViewfra);
             PickerViewfra.SetCornerWithSameRadius(Application.GetRealHeight(50), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight);
-            
 
             var mUIPickerView = new UIPickerView
             {
@@ -163,7 +160,7 @@
             int value = 0;
             if (edit)
             {
-                
+
                 timevalue = int.Parse(Common.Logic.CurrentLogic.Actions[isInt]["DelayTime"].ToString());
                 if (timevalue > 3600)
                 {
@@ -172,11 +169,13 @@
                 }
                 else
                 {
+
                     var minutevalue1 = timevalue / 60;
                     var secondvalue1 = timevalue % 60;
                     //鏇存柊鏈�鏂扮姸鎬�
                     mUIPickerView.setCurrentItems(minutevalue1, secondvalue1, 0);
                 }
+
                 value = timevalue;
             }
             string selectde = "";
@@ -188,7 +187,6 @@
                 selectde = "yes";
 
             };
-
 
             var btnsave = new Button
             {
@@ -210,7 +208,7 @@
                 {
                     return;
                 }
-                if (selectde != ""|| timevalue==5)
+                if (selectde != "" || timevalue == 5)
                 {
                     Dictionary<string, object> actionsInfo = new Dictionary<string, object>();
                     actionsInfo.Add("LinkType", 7);
@@ -242,6 +240,7 @@
                 UserView.HomePage.Instance.PageIndex += 1;
                 logicCommunalPage.Show(() => { });
             };
+
         }
     }
 }

--
Gitblit v1.8.0