private void ReadSelection(XmlReader reader)
{
if (reader.HasAttributes)
{
while (reader.MoveToNextAttribute())
{
string attrName = reader.Name.ToLower();
switch (attrName)
{
case "backcolor":
this._selection_BackColor = this.getColor(reader.Value);
break;
case "backcolorunfocused":
this._selection_BackColorUnfocused = this.getColor(reader.Value);
break;
case "forecolor":
this._selection_ForeColor = this.getColor(reader.Value);
break;
case "forecolorunfocused":
this._selection_ForeColorUnfocused = this.getColor(reader.Value);
break;
case "hidden":
this._selection_Hidden = this.getBool(reader.Value);
break;
case "hideselection":
this._selection_HideSelection = this.getBool(reader.Value);
break;
case "mode":
this._selection_Mode = (SelectionMode)Enum.Parse(typeof(SelectionMode), reader.Value, true);
break;
}
}
reader.MoveToElement();
}
reader.Skip();
}