示例#1
0
        public ListComboBoxTouch(Window pSourceWindow, string pLabelText, List <string> pItemList, string pInitialValue, bool pAddUndefinedValue, bool pRequired)
            : base(pSourceWindow, pLabelText)
        {
            //Entry
            _listComboBox = new ListComboBox(pItemList, pInitialValue, pAddUndefinedValue, pRequired);
            _listComboBox.ComboBoxCell.FontDesc = _fontDescription;

            //Pack
            Vbox.PackStart(_listComboBox);
        }
示例#2
0
        void ListComboBox_Changed(object sender, System.EventArgs e)
        {
            ListComboBox combo = sender as ListComboBox;

            if (sender == null)
            {
                return;
            }

            TreeIter iter;

            if (combo.GetActiveIter(out iter))
            {
                _value = (string)combo.Model.GetValue(iter, 1);
            }
            ;
            //_log.Debug(string.Format("_value: [{0}]", _value));
        }