如何创建授权的控件
相关code fragment如下
class CustomLicenseContext : LicenseContext
public class LicensedComponent : Component
{
public LicensedComponent()
{
ValidateLicense();
}
// Validate license checks if its at run time and sets the LicenseContext if it is.
// If it is at design time, it uses the defualt context.
void ValidateLicense()
{
}
}
相关链接http://windowsforms.net/downloads/gdn/ComponentWithVersionCustomContext.zip
class CustomLicenseContext : LicenseContext
public class LicensedComponent : Component
{
public LicensedComponent()
{
ValidateLicense();
}
// Validate license checks if its at run time and sets the LicenseContext if it is.
// If it is at design time, it uses the defualt context.
void ValidateLicense()
{
}
}
相关链接http://windowsforms.net/downloads/gdn/ComponentWithVersionCustomContext.zip
浙公网安备 33010602011771号