Пример #1
0
        public ListBox(ListBoxStyle style)
        {
            _selection = new ArraySelection <T>(_items);
            _selection.SetElement(this);
            _selection.SetRequired(true);

            SetStyle(style);
            SetSize(PreferredWidth, PreferredHeight);
        }
Пример #2
0
        public SelectBox(SelectBoxStyle style)
        {
            _selection = new ArraySelection <T>(_items);
            setStyle(style);
            setSize(preferredWidth, preferredHeight);

            _selection.setElement(this);
            _selection.setRequired(true);
            _selectBoxList = new SelectBoxList <T>(this);
        }