コード例 #1
0
        public static void AddLicenseLimitNotification(NotificationCenter notificationCenter, LicenseLimitException licenseLimit)
        {
            var alert = AlertRaised.Create(
                null,
                $@"You've reached your license limit ({EnumHelper.GetDescription(licenseLimit.Type)})",
                licenseLimit.Message,
                AlertType.LicenseManager_LicenseLimit,
                NotificationSeverity.Warning,
                key: licenseLimit.Type.ToString(),
                details: new LicenseLimitWarning(licenseLimit));

            notificationCenter.Add(alert, updateExisting: true);
        }
コード例 #2
0
 private LicenseLimitWarning(LicenseLimitException licenseLimit)
 {
     Type    = licenseLimit.Type;
     Message = licenseLimit.Message;
 }