Example #1
0
 public static void CheckLicense()
 {
     if (IsLicenseFound)
     {
         return;
     }
     else
     {
         if (!File.Exists(fileName))
         {
             throw new Exception("Euresys License Not Found");
         }
         if (KeyDecoder.GetWindowsProductKey() != Decrypt())
         {
             throw new Exception("Euresys License Not Found");
         }
         IsLicenseFound = true;
     }
 }
Example #2
0
 public static void CreateLicense()
 {
     Encrypt(KeyDecoder.GetWindowsProductKey());
 }