bluelight Testversion fertiggestellt
This commit is contained in:
@@ -24,15 +24,15 @@ namespace SanShared
|
||||
|
||||
public Dongle(uint ProductCode)
|
||||
{
|
||||
#if !DEBUG
|
||||
//if !DEBUG
|
||||
this.FirmCode = 103086;
|
||||
this.ProductCode = ProductCode;
|
||||
#else
|
||||
/*#else
|
||||
return;
|
||||
this.FirmCode = 10;
|
||||
this.ProductCode = 1;
|
||||
#endif
|
||||
|
||||
*/
|
||||
|
||||
cmApi = new Api();
|
||||
cmCred = new CmCredential();
|
||||
@@ -102,22 +102,15 @@ namespace SanShared
|
||||
|
||||
public void CleanDongle()
|
||||
{
|
||||
#if DEBUG
|
||||
return;
|
||||
#endif
|
||||
cmApi.CmRelease(hcmse);
|
||||
}
|
||||
|
||||
public bool CheckDongleVorhanden()
|
||||
{
|
||||
#if LAPTOP
|
||||
return true;
|
||||
#else
|
||||
if (hcmse == null)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
public string GetDongleSerial()
|
||||
@@ -146,9 +139,6 @@ namespace SanShared
|
||||
|
||||
public bool IsLicensed(byte neededMask)
|
||||
{
|
||||
#if DEBUG
|
||||
return true;
|
||||
#else
|
||||
uint DongleFeature = GetFeatureMap();
|
||||
|
||||
//Trace.WriteLine("DongleFeature: " + DongleFeature);
|
||||
@@ -158,7 +148,6 @@ namespace SanShared
|
||||
if ((DongleFeatureB & neededMask) == neededMask)
|
||||
return true;
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
Reference in New Issue
Block a user