コード例 #1
0
ファイル: ListBox.cs プロジェクト: bretgourdie/SockMarket
        public ListBox(ListBoxStyle style)
        {
            _selection = new ArraySelection <T>(_items);
            _selection.SetElement(this);
            _selection.SetRequired(true);

            SetStyle(style);
            SetSize(PreferredWidth, PreferredHeight);
        }
コード例 #2
0
ファイル: SelectBox.cs プロジェクト: Hobbs2000/CSharpGame
        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);
        }