old mode 100644
new mode 100755
| | |
| | | var systeMinute = DateTime.Now.Minute;//获取分钟 |
| | | int systemHourIndex = 0; |
| | | int systeMinuteIndex = 0; |
| | | for (int i = 0; i < timePointView.GethIntList0().Count; i++) |
| | | for (int i = 0; i < timePointView.GethIntList().Count; i++) |
| | | { |
| | | var currhour = timePointView.GethIntList0()[i]; |
| | | var currhour = timePointView.GethIntList()[i]; |
| | | if (systemHour == currhour) |
| | | { |
| | | systemHourIndex = i; |
| | |
| | | int hIndex = timePointView.GetValueIndex(timeValue, 0, 1, timePointView.GethIntList()); |
| | | int mIndex = timePointView.GetValueIndex(timeValue, 1, 0, timePointView.GetmIntList()); |
| | | //更新初始状态 |
| | | timePointView.mUIPickerView.setCurrentItems(hIndex - 1, mIndex, 0); |
| | | timePointView.mUIPickerView.setCurrentItems(hIndex, mIndex, 0); |
| | | timepoint = timeValue; |
| | | } |
| | | } |
| | |
| | | Button btnStartTimeText = new Button |
| | | { |
| | | TextSize = LogicView.TextSize.text12, |
| | | Width = Application.GetRealWidth(32 + 3), |
| | | Width = Application.GetRealWidth(32 + 3+20), |
| | | Height = Application.GetRealHeight(17), |
| | | TextColor = CSS.CSS_Color.textCancelColor, |
| | | Y = Application.GetRealHeight(17), |
| | | X = Application.GetRealWidth(260), |
| | | X = Application.GetRealWidth(260-20), |
| | | Tag = "0", |
| | | }; |
| | | startTimeView.frameLayout.AddChidren(btnStartTimeText); |
| | |
| | | Button btnEndTimeText = new Button |
| | | { |
| | | TextSize = LogicView.TextSize.text12, |
| | | Width = Application.GetRealWidth(32 + 3), |
| | | Width = Application.GetRealWidth(32 + 3+20), |
| | | Height = Application.GetRealHeight(17), |
| | | TextColor = CSS.CSS_Color.textCancelColor, |
| | | Y = Application.GetRealHeight(17), |
| | | X = Application.GetRealWidth(260), |
| | | X = Application.GetRealWidth(260-20), |
| | | Tag = "0", |
| | | }; |
| | | endTimeView.frameLayout.AddChidren(btnEndTimeText); |
| | |
| | | var systeMinute = DateTime.Now.Minute;//获取分钟 |
| | | int systemHourIndex = 0; |
| | | int systeMinuteIndex = 0; |
| | | for (int i = 0; i < timePointView.GethIntList0().Count; i++) |
| | | for (int i = 0; i < timePointView.GethIntList().Count; i++) |
| | | { |
| | | var currhour = timePointView.GethIntList0()[i]; |
| | | var currhour = timePointView.GethIntList()[i]; |
| | | if (systemHour == currhour) |
| | | { |
| | | systemHourIndex = i; |
| | |
| | | int hourIndex = timePointView.GetValueIndex(timepoint, 0, 1, timePointView.GethIntList()); |
| | | int minuteIndex = timePointView.GetValueIndex(timepoint, 1, 0, timePointView.GetmIntList()); |
| | | //更新状态 |
| | | timePointView.mUIPickerView.setCurrentItems(hourIndex - 1, minuteIndex, 0); |
| | | timePointView.mUIPickerView.setCurrentItems(hourIndex, minuteIndex, 0); |
| | | } |
| | | |
| | | //选中时间回调方法,时间变化一次回调一次 |