internal void FillContent(Item item) { textBoxName.Text = item.Name; LicenseItem li = null; LicenseInformation licenseInformation = EnvironmentManager.Instance.LicenseManager.ReservedLicenseManager.GetLicenseInformation( ServerConnectionDefinition.ServerConnectionPluginId, ServerConnectionDefinition.ServerLicenseId); if (licenseInformation != null) { li = licenseInformation.GetConfiguredLicenseItem(item.FQID.ObjectId.ToString()); } if (li != null) { if (licenseInformation.Expire.Year != 9999 && licenseInformation.Expire < li.ItemTrialEnd) { // Check for entire licens to expire if (licenseInformation.Expire < DateTime.UtcNow) { textBoxLicenseInfo.Text = "License expired on " + licenseInformation.Expire.ToLongDateString(); } else { textBoxLicenseInfo.Text = "License will expire on " + licenseInformation.Expire.ToLongDateString(); } } else { // Check for each item to expire if (li.ItemTrial == false) { textBoxLicenseInfo.Text = "Licensed"; } else { textBoxLicenseInfo.Text = "Trial until: " + li.ItemTrialEnd.ToLongDateString(); } } } }