| | |
| | | }; |
| | | for (int i = 0; i < list.Count; i++) |
| | | { |
| | | LogicView.SelectTypeView timeView = new LogicView.SelectTypeView(); |
| | | timeView.frameLayout.Y = Application.GetRealHeight(i * 50); |
| | | timeView.btnIcon.Visible = false; |
| | | timeView.btnText.X = Application.GetRealWidth(16); |
| | | timeView.btnLine.X = Application.GetRealWidth(16); |
| | | timeView.btnLine.Width = Application.GetRealWidth(375 - 16 - 16); |
| | | timeView.btnText.Text = list[i]; |
| | | timeView.btnClick.Tag = list[i]; |
| | | viewLayout.AddChidren(timeView.FLayoutView()); |
| | | LogicView.SelectTypeView view = new LogicView.SelectTypeView(); |
| | | view.frameLayout.Y = Application.GetRealHeight(i * 50); |
| | | view.btnIcon.Visible = false; |
| | | view.btnNextIcon.Visible = false; |
| | | view.btnText.X = Application.GetRealWidth(16); |
| | | view.btnLine.X = Application.GetRealWidth(16); |
| | | view.btnLine.Width = Application.GetRealWidth(375 - 16 - 16); |
| | | view.btnText.Text = list[i]; |
| | | view.btnClick.Tag = list[i]; |
| | | viewLayout.AddChidren(view.FLayoutView()); |
| | | |
| | | timeView.btnClick.MouseUpEventHandler += (sen, e) => |
| | | view.btnClick.MouseUpEventHandler += (sen, e) => |
| | | { |
| | | //string |
| | | //if () { } |
| | | //else if () { } |
| | | //else if () { } |
| | | string text = view.btnClick.Tag.ToString(); |
| | | if (text == Language.StringByID(StringId.clearday)) |
| | | { |
| | | |
| | | } |
| | | else if (text == Language.StringByID(StringId.cloudy)) |
| | | { |
| | | |
| | | } |
| | | else if (text == Language.StringByID(StringId.rain)) |
| | | { |
| | | |
| | | } |
| | | }; |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |