在有源代码的情况下注释ComponentArt的许可证检查,彻底无风险使用ComponentArt

 

打开解决方案

LicensingRedistributeLicenseProvider.cs, 



找到

if(strAppKey == strFoundAppKey) 
return new ComponentArt.Licensing.Providers.RedistributableLicense(this"The App"); 
else 
return false;



改成

if(strAppKey == strFoundAppKey) 
return new ComponentArt.Licensing.Providers.RedistributableLicense(this"The App"); 
else 
return new ComponentArt.Licensing.Providers.RedistributableLicense(this"The App"); 



另外
BaseClasses/WebControl.cs
找到

protected override void Render(HtmlTextWriter output

)
将如下语句注释掉

if (!IsLicensed())
{
RenderRedistributableWarning(output); 
return
}



重新编译就OK啦 

posted on 2007-04-26 22:02  海南一哥  阅读(111)  评论(0编辑  收藏  举报

导航