/// <summary> /// Gets the current value from the drop down control. /// </summary> protected virtual object GetValue(Control control) { DropDownEditorListBox listBox = (DropDownEditorListBox)control; return(listBox.Value); }
/// <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; }