Пример #1
0
        protected override Control CreateEditor(TreeNodeAdv node)
        {
            AdvComboBox comboBox = new AdvComboBox();
            if (DropDownItems != null)
                comboBox.Items.AddRange(DropDownItems.ToArray());
            comboBox.SelectedItem = GetValue(node);
              comboBox.DropDownStyle = dropDownStyle;
            comboBox.DropDownClosed += new EventHandler(EditorDropDownClosed);
            SetEditControlProperties(comboBox, node);

            comboBox.Tag = this;
              OnEditorInitialize(new EditorInitializeEventArgs(node, comboBox));

            return comboBox;
        }
Пример #2
0
        protected override Control CreateEditor(TreeNodeAdv node)
        {
            AdvComboBox comboBox = new AdvComboBox();

            if (DropDownItems != null)
            {
                comboBox.Items.AddRange(DropDownItems.ToArray());
            }
            comboBox.SelectedItem    = GetValue(node);
            comboBox.DropDownStyle   = dropDownStyle;
            comboBox.DropDownClosed += new EventHandler(EditorDropDownClosed);
            SetEditControlProperties(comboBox, node);

            comboBox.Tag = this;
            OnEditorInitialize(new EditorInitializeEventArgs(node, comboBox));

            return(comboBox);
        }