wxr
2023-09-22 28af8fe24b23a958d365e40789dcf061e45056ad
OnPro/HDL_ON/UI/UI2/3-Intelligence/Automation/Security.cs
@@ -22,25 +22,12 @@
            VerticalScrolViewLayout viewLayout = new VerticalScrolViewLayout
            {
                Y = Application.GetRealHeight(64),
                Y = Application.GetRealHeight(74),
                Width = Application.GetRealWidth(LogicView.TextSize.view375),
                Height = Application.GetRealHeight(LogicView.TextSize.view667 - 64),
                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);
                };
            }
        }