public ComboBox(Root root, string id, ComboBoxProperties properties, Menu menu) : base(root, id, properties, menu) { if (string.IsNullOrEmpty(CBProperties.AllowFreeForm)) { _allowFreeForm = false; } else { _allowFreeForm = CBProperties.AllowFreeForm.ToLower() == "true"; } if (string.IsNullOrEmpty(CBProperties.AutoComplete)) { CBProperties.AutoComplete = "true"; } if (!string.IsNullOrEmpty(CBProperties.AutoCompleteDelay)) { try { _autoCompleteDelay = Int32.Parse(CBProperties.AutoCompleteDelay); } catch { // ParseInt failed, so use default _autoCompleteDelay = DEFAULT_AUTOCOMPLETE_DELAY; } } }
public ComboBox(Root root, string id, ComboBoxProperties properties, Menu menu) : base(root, id, properties, menu) { if (string.IsNullOrEmpty(CBProperties.AllowFreeForm)) _allowFreeForm = false; else _allowFreeForm = CBProperties.AllowFreeForm.ToLower() == "true"; if (string.IsNullOrEmpty(CBProperties.AutoComplete)) CBProperties.AutoComplete = "true"; if (!string.IsNullOrEmpty(CBProperties.AutoCompleteDelay)) { try { _autoCompleteDelay = Int32.Parse(CBProperties.AutoCompleteDelay); } catch { // ParseInt failed, so use default _autoCompleteDelay = DEFAULT_AUTOCOMPLETE_DELAY; } } }