// Token: 0x06000666 RID: 1638 RVA: 0x00026794 File Offset: 0x00024994
        public static void Show(DiscoveryResultBase result, StartImportStatus status)
        {
            DiscoveryAutoImportNotificationItemDAL item = DiscoveryAutoImportNotificationItemDAL.GetItem();
            string description = string.Format(CultureInfo.InvariantCulture, "DiscoveryImportStatus:{0}", status);
            string title       = string.Empty;

            switch (status)
            {
            case StartImportStatus.Failed:
                title = Resources2.Notification_DiscoveryAutoImport_Failed;
                break;

            case StartImportStatus.LicenseExceeded:
                title = Resources2.Notification_DiscoveryAutoImport_LicenseExceeded;
                break;

            case StartImportStatus.Finished:
                title = Resources2.Notification_DiscoveryAutoImport_Succeeded;
                break;

            default:
                return;
            }
            if (item == null)
            {
                NotificationItemDAL.Insert(DiscoveryAutoImportNotificationItemDAL.DiscoveryAutoImportNotificationItemId, DiscoveryAutoImportNotificationItemDAL.DiscoveryAutoImportNotificationTypeGuid, title, description, false, DiscoveryAutoImportNotificationItemDAL.NetworkSonarDiscoveryURL, null, null);
                return;
            }
            item.SetNotAcknowledged();
            item.Title       = title;
            item.Description = description;
            item.Update();
        }
        public static void Show(DiscoveryResultBase result, StartImportStatus status)
        {
            DiscoveryAutoImportNotificationItemDAL notificationItemDal = DiscoveryAutoImportNotificationItemDAL.GetItem();
            string description = string.Format((IFormatProvider)CultureInfo.InvariantCulture, "DiscoveryImportStatus:{0}", (object)status);
            string empty       = string.Empty;
            string title;

            switch (status - 4)
            {
            case 0:
                title = Resources2.get_Notification_DiscoveryAutoImport_Failed();
                break;

            case 1:
                title = Resources2.get_Notification_DiscoveryAutoImport_LicenseExceeded();
                break;

            case 2:
                title = Resources2.get_Notification_DiscoveryAutoImport_Succeeded();
                break;

            default:
                return;
            }
            if (notificationItemDal == null)
            {
                NotificationItemDAL.Insert(DiscoveryAutoImportNotificationItemDAL.DiscoveryAutoImportNotificationItemId, DiscoveryAutoImportNotificationItemDAL.DiscoveryAutoImportNotificationTypeGuid, title, description, false, DiscoveryAutoImportNotificationItemDAL.NetworkSonarDiscoveryURL, new DateTime?(), (string)null);
            }
            else
            {
                notificationItemDal.SetNotAcknowledged();
                notificationItemDal.Title       = title;
                notificationItemDal.Description = description;
                notificationItemDal.Update();
            }
        }