C# Class ComponentFactory.Krypton.Navigator.LicenseInstallForm

Provides a basic form for installing Infralution Encrypted Licenses that can be extended or modified using visual inheritance
Inheritance: System.Windows.Forms.Form
Mostrar archivo Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
LicenseInstallForm ( ) : System

Initialize a new instance of the form

ShowDialog ( Type typeToLicence ) : EncryptedLicense

Display the InstallLicense Dialog

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

GetLicenseProvider ( ) : EncryptedLicenseProvider

Return the license provider to use

GetProductCode ( string licenseString ) : string

Gets the product code from the license.

GetVersionCode ( string licenseString ) : string

Gets the version code from the license.

InstallLicenseKey ( string key ) : bool

Install the license key entered by the user

OnHelpButtonClick ( object sender, EventArgs e ) : void

Handle Click event for the Help button

OnIgnoreButtonClick ( object sender, System e ) : void

Handle Click event for the Ignore button

OnLicenceTextChanged ( object sender, EventArgs e ) : void

Handle TextChanged event for the License Text button

OnOkButtonClick ( object sender, EventArgs e ) : void

Handle Click event for the Ignore button

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

GetLicenseProvider() protected method

Return the license provider to use
protected GetLicenseProvider ( ) : EncryptedLicenseProvider
return EncryptedLicenseProvider

GetProductCode() protected static method

Gets the product code from the license.
protected static GetProductCode ( string licenseString ) : string
licenseString string License code to decompose.
return string

GetVersionCode() protected static method

Gets the version code from the license.
protected static GetVersionCode ( string licenseString ) : string
licenseString string License code to decompose.
return string

InstallLicenseKey() protected method

Install the license key entered by the user
protected InstallLicenseKey ( string key ) : bool
key string The key to install
return bool

LicenseInstallForm() public method

Initialize a new instance of the form
public LicenseInstallForm ( ) : System
return System

OnHelpButtonClick() protected method

Handle Click event for the Help button
protected OnHelpButtonClick ( object sender, EventArgs e ) : void
sender object Event source.
e System.EventArgs An EventArgs containing the event data.
return void

OnIgnoreButtonClick() protected method

Handle Click event for the Ignore button
protected OnIgnoreButtonClick ( object sender, System e ) : void
sender object Event source.
e System An EventArgs containing the event data.
return void

OnLicenceTextChanged() protected method

Handle TextChanged event for the License Text button
protected OnLicenceTextChanged ( object sender, EventArgs e ) : void
sender object Event source.
e System.EventArgs An EventArgs containing the event data.
return void

OnOkButtonClick() protected method

Handle Click event for the Ignore button
protected OnOkButtonClick ( object sender, EventArgs e ) : void
sender object Event source.
e System.EventArgs An EventArgs containing the event data.
return void

ShowDialog() public method

Display the InstallLicense Dialog
public ShowDialog ( Type typeToLicence ) : EncryptedLicense
typeToLicence System.Type Type to licence.
return EncryptedLicense