//The constructor associates the control with the smart tag list.
        public IndustryActionList(IComponent component)
            : base(component)
        {
            this.colUserControl = component as IndustrySwitch;

            this.designerActionUISvc = GetService(typeof(DesignerActionUIService)) as DesignerActionUIService;
        }
Beispiel #2
0
        public SwitchArray()
        {
            InitializeComponent();
            // 设计器中自动配置了Name会导致在设计时获取控件名称失败
            this.Name = "";
            _controls = new List <IndustrySwitch>();
            _model    = new IndustrySwitch();
            Dimension = 1;

            ControlWidth  = 50;
            ControlHeight = 80;
            Direction     = true;

            flpanel.AutoScroll    = true;
            flpanel.FlowDirection = FlowDirection.TopDown;
            flpanel.WrapContents  = false;
        }