internal static Boolean canDoRelates()
{
Boolean Result = false;
IAoInitialize theInit;
ILicenseInformation theLicense;
theInit = new AoInitializeClass();
theLicense = (ILicenseInformation)theInit;
String theProduct = theLicense.GetLicenseProductName(theInit.InitializedProduct());
if (theProduct == "esriLicenseProductCodeArcEditor" || theProduct == "esriLicenseProductCodeArcInfo") return true;
return Result;
}