| | |
| | | BackgroundColor = CSS.CSS_Color.viewMiddle, |
| | | }; |
| | | this.AddChidren(viewLayout); |
| | | var securityList = LogicMethod.Current.GetSecurityList(); |
| | | for (int i = 0; i < securityList.Count; i++) |
| | | { |
| | | var security = securityList[i]; |
| | | LogicView.SelectTypeView securityView = new LogicView.SelectTypeView(); |
| | | securityView.btnText.Text = security.name; |
| | | securityView.btnIcon.UnSelectedImagePath = "LogicIcon/security.png"; |
| | | viewLayout.AddChidren(securityView.FLayoutView()); |
| | | securityView.btnClick.MouseUpEventHandler += (sen, e) => |
| | | { |
| | | SecurityMethod(this, security.sid); |
| | | }; |
| | | } |
| | | //var securityList = new List<Funtion>(); |
| | | //for (int i = 0; i < securityList.Count; i++) |
| | | //{ |
| | | // var security = securityList[i]; |
| | | // LogicView.SelectTypeView securityView = new LogicView.SelectTypeView(); |
| | | // securityView.btnText.Text = security.name; |
| | | // securityView.btnIcon.UnSelectedImagePath = "LogicIcon/security.png"; |
| | | // viewLayout.AddChidren(securityView.FLayoutView()); |
| | | // securityView.btnClick.MouseUpEventHandler += (sen, e) => |
| | | // { |
| | | // SecurityMethod(this, security.sid); |
| | | // }; |
| | | //} |
| | | |
| | | } |
| | | |