void ControlPropertiesValid()
{
switch (Mode) {
case TwitterMode.Profile:
if (String.IsNullOrEmpty(ScreenName))
throw new HttpException("ScreenName must have a value");
break;
case TwitterMode.Search:
if (String.IsNullOrEmpty(Search))
throw new HttpException("Search must have a value");
break;
}
}