Exemplo n.º 1
0
        /// <summary>
        /// Gets the current value from the drop down control.
        /// </summary>
        protected virtual object GetValue(Control control)
        {
            DropDownEditorListBox listBox = (DropDownEditorListBox)control;

            return(listBox.Value);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Sets the current value in the drop down control.
        /// </summary>
        protected virtual void SetValue(Control control, object value)
        {
            DropDownEditorListBox listBox = (DropDownEditorListBox)control;

            listBox.Value = (string)value;
        }