private void ReadAutoComplete(XmlReader reader)
{
if (reader.HasAttributes)
{
while (reader.MoveToNextAttribute())
{
string attrName = reader.Name.ToLower();
switch (attrName)
{
case "autohide":
this._autoComplete_AutoHide = this.getBool(reader.Value);
break;
case "automaticlengthentered":
this._autoComplete_AutomaticLengthEntered = this.getBool(reader.Value);
break;
case "cancelatstart":
this._autoComplete_cancelAtStart = this.getBool(reader.Value);
break;
case "droprestofword":
this._autoComplete_DropRestOfWord = this.getBool(reader.Value);
break;
case "fillupcharacters":
this._autoComplete_fillUpCharacters = reader.Value;
break;
case "imageseperator":
this._autoComplete_ImageSeperator = this.getChar(reader.Value);
break;
case "iscasesensitive":
this._autoComplete_IsCaseSensitive = this.getBool(reader.Value);
break;
case "listseperator":
this._autoComplete_ListSeperator = this.getChar(reader.Value);
break;
case "maxheight":
this._autoComplete_MaxHeight = this.getInt(reader.Value);
break;
case "maxwidth":
this._autoComplete_MaxWidth = this.getInt(reader.Value);
break;
case "singlelineaccept":
this._autoComplete_singleLineAccept = this.getBool(reader.Value);
break;
case "stopcharacters":
this._autoComplete_StopCharacters = reader.Value;
break;
}
}
reader.MoveToElement();
}
if (!reader.IsEmptyElement)
{
while (!(reader.NodeType == XmlNodeType.EndElement && reader.Name.Equals("autocomplete", StringComparison.OrdinalIgnoreCase)))
{
reader.Read();
if (reader.NodeType == XmlNodeType.Element && reader.Name.Equals("list", StringComparison.OrdinalIgnoreCase))
{
if (reader.HasAttributes)
{
while (reader.MoveToNextAttribute())
if (reader.Name.Equals("inherit", StringComparison.OrdinalIgnoreCase))
this._autoComplete_ListInherit = this.getBool(reader.Value);
reader.MoveToElement();
}
this._autoComplete_List = new Regex("\\s+").Replace(reader.ReadString(), " ").Trim();
}
}
}
reader.Read();
}