public static void Show(IEnumerable <string> elementsOverLimit) { string description = string.Join(";", elementsOverLimit.ToArray <string>()); LicenseSaturationNotificationItemDAL notificationItemDal = LicenseSaturationNotificationItemDAL.GetItem(); if (notificationItemDal == null) { NotificationItemDAL.Insert <LicenseSaturationNotificationItemDAL>(LicenseSaturationNotificationItemDAL.LicenseSaturationNotificationItemId, LicenseSaturationNotificationItemDAL.NotificationMessge, description, false, LicenseSaturationNotificationItemDAL.popupCallFunction, new DateTime?(), (string)null); } else { if (description == notificationItemDal.Description) { return; } int num; if (!string.IsNullOrEmpty(notificationItemDal.Description)) { num = elementsOverLimit.Except <string>((IEnumerable <string>)notificationItemDal.Description.Split(';')).Count <string>() > 0 ? 1 : 0; } else { num = 1; } if (num != 0) { notificationItemDal.SetNotAcknowledged(); } notificationItemDal.Description = description; notificationItemDal.Update(); } }
// Token: 0x06000710 RID: 1808 RVA: 0x0002D008 File Offset: 0x0002B208 public static void Show(IEnumerable <string> elementsOverLimit) { string text = string.Join(";", elementsOverLimit.ToArray <string>()); LicenseSaturationNotificationItemDAL item = LicenseSaturationNotificationItemDAL.GetItem(); if (item == null) { NotificationItemDAL.Insert <LicenseSaturationNotificationItemDAL>(LicenseSaturationNotificationItemDAL.LicenseSaturationNotificationItemId, LicenseSaturationNotificationItemDAL.NotificationMessge, text, false, LicenseSaturationNotificationItemDAL.popupCallFunction, null, null); return; } if (text == item.Description) { return; } if (string.IsNullOrEmpty(item.Description) || elementsOverLimit.Except(item.Description.Split(new char[] { ';' })).Count <string>() > 0) { item.SetNotAcknowledged(); } item.Description = text; item.Update(); }