| | |
| | | using Shared.Common; |
| | | using Shared.Phone; |
| | | using Shared.R; |
| | | //if (Application.DeviceType == Device.Android) { |
| | | //} |
| | | //using UIKit;//ios平台才有,android没有; |
| | | using ZigBee.Device; |
| | | |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Y = blancolor.Bottom + Application.GetRealHeight(50), |
| | | TextID =MyInternationalizationString.createtimetext, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | |
| | | }; |
| | | middle.AddChidren(titleText); |
| | | |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | }; |
| | | middle.AddChidren(PickerViewfra); |
| | | |
| | | |
| | | PickerViewfra.SetCornerWithSameRadius(20, HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); |
| | | |
| | | |
| | | var mUIPickerView = new UIPickerView |
| | | { |
| | |
| | | { |
| | | |
| | | 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 = ""; |
| | |
| | | ///完成点击事件 |
| | | btnsave.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | |
| | | if (timevalue == 0) |
| | | { |
| | | return; |
| | | } |
| | | if (selectde != ""|| timevalue==5) |
| | | { |
| | | Dictionary<string, object> actionsInfo = new Dictionary<string, object>(); |