Class LicensingInitialization
Helper functions for licensing, which sometimes has to be interactive since the user must login to their 10duke account if no credentials are on file.
Inheritance
System.Object
LicensingInitialization
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: DesignData.SDS2.WinForms
Assembly: DesignData.SDS2.WinForms.dll
Syntax
public sealed class LicensingInitialization
Constructors
LicensingInitialization()
Declaration
public LicensingInitialization()
Methods
Checkout()
If there are stored credentials, checkout a license right away. If not, prompt the user (with a winforms dialog) for credentials and then ckeckout a license. Those credentials will be stored for the next use.
This helper, or equivalent code, must be called before doing anything else with the SDS2 API.
Equivalent code:
if(!Licensing.HasStoredCredentials)
{
Licensing.SetCredentials("a 10duke username", "their password");
}
Licensing.Checkout();
Declaration
public static bool Checkout()
Returns
Type | Description |
---|---|
System.Boolean |