Habanero.Faces.Base.DateRangeComboBoxManager.SetTopComboBoxItem C# (CSharp) Method

SetTopComboBoxItem() public method

Sets the item in the ComboBox that first appears to the user
public SetTopComboBoxItem ( string displayString ) : void
displayString string The string to display
return void
        public void SetTopComboBoxItem(string displayString)
        {
            string oldText = _comboBox.Items[0].ToString();
            _comboBox.Items[0] = displayString;
            if (_comboBox.Text == oldText)
            {
                _comboBox.Text = _comboBox.Items[0].ToString();
            }
        }