public void RemoveModel(ReportModel model)
{
foreach (ReportView view in Views)
{
checkRemoveModel(view, model);
}
if (Models.Count == 1) throw new Exception("Unable to remove the model: The report must contain at least one Model.");
Models.Remove(model);
}