黄学彪
2019-12-09 163777d8a2cb7cfa469f54a7042528870ebc10a3
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  最上面的布局代码
            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(() => { });
            };
        }
    }
}