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; } }
public static void CreateLicense() { Encrypt(KeyDecoder.GetWindowsProductKey()); }