private bool _ParseSelected(out Expression Expression, out SoundOptions Options)
{
Expression = null;
Options = null;
int targetindex = this._Text.SelectionStart;
int targetlength = this._Text.SelectionLength;
int errorindex = targetindex;
if (targetlength > 0 && Parser.Parse(this._Text.Text, targetindex, targetlength, out Expression, out Options, out errorindex))
{
return true;
}
else
{
this._Text.Select(errorindex, 0);
return false;
}
}