private void CheckSettings()
{
if (_listName == String.Empty)
{
throw (new Exception("Please edit the webpart properties to provide a SharePoint List name to use."));
}
if (_xValue == String.Empty)
{
throw (new Exception("Please edit the webpart properties to provide a horizontal (x) column name to use."));
}
if (_yValue == String.Empty && Action != GroupAction.COUNT)
{
throw (new Exception("Please edit the webpart properties to provide a vertical (y) column name to use."));
}
}