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

打开解决方案

LicensingRedistributeLicenseProvider.cs,



找到

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



改成

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



另外
BaseClasses\WebControl.cs
找到

protected override void Render(HtmlTextWriteroutput

)
将如下语句注释掉

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



重新编译就OK啦

你可能感兴趣的:(component)