| | |
| | | public void Show(int isInt = 0, bool edit = false) |
| | | { |
| | | |
| | | |
| | | #region 最上面的布局代码 |
| | | var topRowLayout = new RowLayout |
| | | { |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.adddelay, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | color.AddChidren(btnicon); |
| | | var titleText = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(480), |
| | | Width = Application.GetMinRealAverage(580), |
| | | Height = Application.GetMinRealAverage(60), |
| | | X = Application.GetRealWidth(300), |
| | | X = Application.GetRealWidth(250), |
| | | Y = blancolor.Bottom + Application.GetRealHeight(50), |
| | | TextID = MyInternationalizationString.createtimetext, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | |
| | | { |
| | | |
| | | timevalue = int.Parse(Common.Logic.CurrentLogic.Actions[isInt]["DelayTime"].ToString()); |
| | | if (timevalue > 3600)
|
| | | {
|
| | | //更新最新状态
|
| | | mUIPickerView.setCurrentItems(60, timevalue - 3600, 0);
|
| | | }
|
| | | else
|
| | | {
|
| | | if (timevalue > 3600) |
| | | { |
| | | //更新最新状态 |
| | | mUIPickerView.setCurrentItems(60, timevalue - 3600, 0); |
| | | } |
| | | else |
| | | { |
| | | |
| | | var minutevalue1 = timevalue / 60;
|
| | | var secondvalue1 = timevalue % 60;
|
| | | //更新最新状态
|
| | | mUIPickerView.setCurrentItems(minutevalue1, secondvalue1, 0);
|
| | | var minutevalue1 = timevalue / 60; |
| | | var secondvalue1 = timevalue % 60; |
| | | //更新最新状态 |
| | | mUIPickerView.setCurrentItems(minutevalue1, secondvalue1, 0); |
| | | } |
| | | |
| | | value = timevalue; |
| | |
| | | if (!edit) |
| | | { |
| | | var alert = new Alert(Language.StringByID(MyInternationalizationString.Prompt), |
| | | Language.StringByID(MyInternationalizationString.selectdevicestatuscondition), |
| | | Language.StringByID(MyInternationalizationString.complete)); |
| | | Language.StringByID(MyInternationalizationString.delaytip), |
| | | Language.StringByID(MyInternationalizationString.confrim)); |
| | | alert.Show(); |
| | | return; |
| | | } |