static Store() { var information = CurrentApp.LicenseInformation; if (information != null) { information.LicenseChanged += OnLicenseChanged; licenseInformation = new LicenseInformation(); licenseInformation.ExpirationDate = information.ExpirationDate; licenseInformation.IsActive = information.IsActive; licenseInformation.IsTrial = information.IsTrial; licenseInformation.ProductLicenses = new Dictionary<string, ProductLicense>(); var dict = information.ProductLicenses; foreach (var keyValuePair in dict) { var value = keyValuePair.Value; var productLicense = new ProductLicense(); productLicense.ExpirationDate = value.ExpirationDate; productLicense.IsActive = value.IsActive; productLicense.ProductId = productLicense.ProductId; licenseInformation.ProductLicenses.Add(keyValuePair.Key, productLicense); } } }
static Store() { var information = CurrentApp.LicenseInformation; if (information != null) { information.LicenseChanged += OnLicenseChanged; licenseInformation = new LicenseInformation(); licenseInformation.ExpirationDate = information.ExpirationDate; licenseInformation.IsActive = information.IsActive; licenseInformation.IsTrial = information.IsTrial; licenseInformation.ProductLicenses = new Dictionary <string, ProductLicense>(); var dict = information.ProductLicenses; foreach (var keyValuePair in dict) { var value = keyValuePair.Value; var productLicense = new ProductLicense(); productLicense.ExpirationDate = value.ExpirationDate; productLicense.IsActive = value.IsActive; productLicense.ProductId = productLicense.ProductId; licenseInformation.ProductLicenses.Add(keyValuePair.Key, productLicense); } } }