DataLoader changes during development

This commit is contained in:
2007-11-14 14:49:18 +00:00
parent da9b899424
commit ef81207dbe
28 changed files with 2118 additions and 962 deletions

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using VEPROMS.CSLA.Library;
using Csla.Validation;
namespace DataLoader
{
public static class ErrorRpt
{
public static void ErrorReport(IVEHasBrokenRules mybr)
{
string smess = mybr.GetType().Name;
IVEHasBrokenRules hbr = mybr.HasBrokenRules;
if (hbr == null) smess += "\n Unknown Error";
else
{
smess += "\n In object" + hbr.GetType().Name;
foreach (BrokenRule br in hbr.BrokenRules)
{
smess += "\n" + br.Property + " - " + br.Description;
}
}
MessageBox.Show(smess);
}
}
}