| | |
| | | Width = Application.GetRealWidth(343), |
| | | X = Application.GetRealWidth(16), |
| | | BackgroundColor = CSS.CSS_Color.view, |
| | | //Radius=(uint)Application.GetRealHeight(12), |
| | | Radius =(uint)Application.GetRealHeight(12), |
| | | }; |
| | | /// <summary> |
| | | /// 时间控件UIPickerView |
| | | /// </summary> |
| | | public UIPickerView mUIPickerView = new UIPickerView |
| | | { |
| | | X= Application.GetRealWidth(12), |
| | | Height = Application.GetRealHeight(297), |
| | | Width = Application.GetRealWidth(343), |
| | | BackgroundColor = CSS.CSS_Color.viewTranslucence, |
| | | Width = Application.GetRealWidth(343-12*2), |
| | | BackgroundColor =CSS.CSS_Color.viewTranslucence, |
| | | Radius = (uint)Application.GetRealHeight(12), |
| | | |
| | | }; |
| | | /// <summary> |
| | |
| | | Width = Application.GetRealWidth(52), |
| | | Height = Application.GetRealHeight(32), |
| | | Y = Application.GetRealHeight(6), |
| | | X = Application.GetRealWidth(8) |
| | | X = Application.GetRealWidth(8), |
| | | |
| | | }; |
| | | /// <summary> |
| | | /// 确定Btn |
| | |
| | | BackgroundColor = CSS.CSS_Color.viewLine, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = 1, |
| | | Y = Application.GetRealWidth(44) |
| | | Y = Application.GetRealWidth(44), |
| | | |
| | | }; |
| | | /// <summary> |
| | | /// 时间View的方法 |
| | |
| | | /// <returns></returns> |
| | | public void FLayoutView(FrameLayout fLayout) |
| | | { |
| | | |
| | | fLayout.AddChidren(frameLayout); |
| | | frameLayout.AddChidren(mUIPickerView); |
| | | frameLayout.AddChidren(btnCancel); |
| | | frameLayout.AddChidren(btnConfirm); |
| | | frameLayout.AddChidren(btnLine); |
| | | fLayout.AddChidren(frameLayout); |
| | | } |
| | | /// <summary> |
| | | /// 获取24小时列表 |
| | | /// 获取1-24小时列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public List<string> GethStringList() |
| | |
| | | //初始化列表 |
| | | var hList = new List<string>(); |
| | | for (int i = 1; i < 24; i++) |
| | | { |
| | | if (i < 10) |
| | | { |
| | | var a = "0" + i.ToString(); |
| | | //添加数据 |
| | | hList.Add(a + " " + Language.StringByID(StringId.h)); |
| | | } |
| | | else |
| | | { |
| | | //添加数据 |
| | | hList.Add(i.ToString() + " " + Language.StringByID(StringId.h)); |
| | | } |
| | | |
| | | } |
| | | return hList; |
| | | |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 获取0-23小时列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public List<string> GethStringList0() |
| | | { |
| | | //初始化列表 |
| | | var hList = new List<string>(); |
| | | for (int i = 0; i < 23; i++) |
| | | { |
| | | if (i < 10) |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取023小时列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public List<int> GethIntList0() |
| | | { |
| | | //初始化列表 |
| | | var hList = new List<int>(); |
| | | for (int i = 1; i < 24; i++) |
| | | { |
| | | //添加数据 |
| | | hList.Add(i); |
| | | } |
| | | return hList; |
| | | |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 获取24小时列表 |
| | | /// </summary> |
| | | /// <returns></returns> |