| | |
| | | }; |
| | | //添加主界面 |
| | | this.AddChidren(fLayout); |
| | | //var fLayout = GetFrame(this,"2"); |
| | | |
| | | TimeHorizon(fLayout, false, 0); |
| | | }; |
| | | |
| | |
| | | { |
| | | LogicView.TimeView timePointView = new LogicView.TimeView(); |
| | | timePointView.FLayoutView(fLayout); |
| | | EventHandler<MouseEventArgs> RemovefLayout = (sender, e1) => |
| | | EventHandler<MouseEventArgs> removefLayout = (sender, e1) => |
| | | { |
| | | //移除fLayout界面 |
| | | fLayout.RemoveFromParent(); |
| | | }; |
| | | //取消点击事件 |
| | | timePointView.btnCancel.MouseUpEventHandler += RemovefLayout; |
| | | timePointView.btnCancel.MouseUpEventHandler += removefLayout; |
| | | |
| | | //加载数据界面的设置方法(列表互不联动) |
| | | timePointView.mUIPickerView.setNPicker(timePointView.GethStringList(), timePointView.GetmStringList(), null); |
| | |
| | | { |
| | | #region 界面布局 |
| | | LogicView.TimeHorizonView timeHorizonView = new LogicView.TimeHorizonView(); |
| | | timeHorizonView.frameLayout.SetCornerWithSameRadius(12, HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight | HDLUtils.RectCornerBottomLeft | HDLUtils.RectCornerBottomRight); |
| | | timeHorizonView.FLayoutView(fLayout); |
| | | //开始时间 |
| | | LogicView.SelectTypeView startTimeView = new LogicView.SelectTypeView(); |
| | |
| | | { |
| | | TextSize = LogicView.TextSize.text12, |
| | | Width = Application.GetRealWidth(32 + 3), |
| | | Height = Application.GetRealHeight(20), |
| | | Height = Application.GetRealHeight(17), |
| | | TextColor = CSS.CSS_Color.textCancelColor, |
| | | Y = Application.GetRealHeight(17), |
| | | X = Application.GetRealWidth(260), |
| | |
| | | |
| | | //结束时间 |
| | | LogicView.SelectTypeView endTimeView = new LogicView.SelectTypeView(); |
| | | endTimeView.frameLayout.SetCornerWithSameRadius(12, HDLUtils.RectCornerBottomLeft | HDLUtils.RectCornerBottomRight); |
| | | endTimeView.frameLayout.SetCornerWithSameRadius(Application.GetRealHeight(12), HDLUtils.RectCornerBottomLeft | HDLUtils.RectCornerBottomRight); |
| | | endTimeView.frameLayout.Y = startTimeView.frameLayout.Bottom; |
| | | endTimeView.btnIcon.Visible = false; |
| | | endTimeView.btnLine.Visible = false; |
| | |
| | | { |
| | | TextSize = LogicView.TextSize.text12, |
| | | Width = Application.GetRealWidth(32 + 3), |
| | | Height = Application.GetRealHeight(20), |
| | | Height = Application.GetRealHeight(17), |
| | | TextColor = CSS.CSS_Color.textCancelColor, |
| | | Y = Application.GetRealHeight(17), |
| | | X = Application.GetRealWidth(260), |
| | |
| | | timePointView.frameLayout.RemoveFromParent(); |
| | | }; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 灰色弹框父控件 |
| | | /// </summary> |
| | | /// <param name="frame">显示在哪个界面</param> |
| | | /// <returns></returns> |
| | | public FrameLayout GetFrame(FrameLayout frame, string tagKey) |
| | | { |
| | | for (int i = 0; i < frame.ChildrenCount; i++) |
| | | { |
| | | var fra = frame.GetChildren(i); |
| | | if (fra != null) |
| | | { |
| | | fra.RemoveFromParent(); |
| | | } |
| | | } |
| | | |
| | | |
| | | FrameLayout fLayout = new FrameLayout() |
| | | { |
| | | BackgroundColor = CSS.CSS_Color.viewTrans60lucence, |
| | | |
| | | }; |
| | | frame.AddChidren(fLayout); |
| | | |
| | | |
| | | return fLayout; |
| | | } |
| | | } |
| | | } |