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); }
private LicenseLimitWarning(LicenseLimitException licenseLimit) { Type = licenseLimit.Type; Message = licenseLimit.Message; }