try { // Read the encrypted start date string encryptedDate = File.ReadAllText(TrialKeyFile); string decryptedDate = Decrypt(encryptedDate); DateTime startDate = DateTime.Parse(decryptedDate);
A completely free version to view, query, and print Tekla models. Ideal for collaboration without editing.
public class LicenseManager { private const string TrialKeyFile = "license.dat"; private const int TrialDays = 30;