WJC
2019-12-09 ef63c84b3b408fea661f84d3f9ecc237787af250
ZigbeeApp/Shared/Phone/Device/Logic/DelayTime.cs
@@ -17,7 +17,7 @@
            Tag = "Logic";
        }
        public void Show(int isInt=0, bool edit=false)
        public void Show(int isInt = 0, bool edit = false)
        {
            #region  最上面的布局代码
@@ -78,7 +78,6 @@
            };
            this.AddChidren(middle);
            var blancolor = new FrameLayout
            {
                Width = Application.GetMinRealAverage(200),
@@ -114,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,
@@ -129,7 +128,6 @@
            };
            middle.AddChidren(PickerViewfra);
            PickerViewfra.SetCornerWithSameRadius(Application.GetRealHeight(50), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight);
            var mUIPickerView = new UIPickerView
            {
@@ -162,7 +160,7 @@
            int value = 0;
            if (edit)
            {
                timevalue = int.Parse(Common.Logic.CurrentLogic.Actions[isInt]["DelayTime"].ToString());
                if (timevalue > 3600)
                {
@@ -177,7 +175,7 @@
                    //更新最新状态
                    mUIPickerView.setCurrentItems(minutevalue1, secondvalue1, 0);
                }
                value = timevalue;
            }
            string selectde = "";
@@ -189,7 +187,6 @@
                selectde = "yes";
            };
            var btnsave = new Button
            {
@@ -211,7 +208,7 @@
                {
                    return;
                }
                if (selectde != ""|| timevalue==5)
                if (selectde != "" || timevalue == 5)
                {
                    Dictionary<string, object> actionsInfo = new Dictionary<string, object>();
                    actionsInfo.Add("LinkType", 7);
@@ -243,6 +240,7 @@
                UserView.HomePage.Instance.PageIndex += 1;
                logicCommunalPage.Show(() => { });
            };
        }
    }
}