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; }
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); }