internal virtual void ChangeVisualState(bool useTransitions)
{
if (this.isMouseOver)
{
if (!this.GoToState(useTransitions, "MouseOver"))
{
this.GoToState(useTransitions, "Normal");
}
}
else
{
this.GoToState(useTransitions, "Normal");
}
if (this.Selected)
{
if (!this.GoToState(useTransitions, "Selected"))
{
this.GoToState(useTransitions, "Unselected");
}
}
else
{
this.GoToState(useTransitions, "Unselected");
}
}