public static string GetItemImg(object notificationType, object notificationStatus, object originalExtAttributes)
        {
            string result = SeverityLevelAttribute.FromEnum(notificationStatus.GetType(), notificationStatus).ToString() + "Img";

            if ((AsyncOperationType)notificationType == AsyncOperationType.Migration && originalExtAttributes != DBNull.Value)
            {
                KeyValuePair <string, LocalizedString>[] source       = (KeyValuePair <string, LocalizedString>[])originalExtAttributes;
                KeyValuePair <string, LocalizedString>   keyValuePair = source.FirstOrDefault((KeyValuePair <string, LocalizedString> x) => x.Key == AsyncNotificationAdapter.TotalFailedCount);
                int num;
                if (keyValuePair.Key == AsyncNotificationAdapter.TotalFailedCount && int.TryParse(keyValuePair.Value.ToString(), out num) && num > 0)
                {
                    result = "WarningImg";
                }
            }
            return(result);
        }
        public static void PostGetNotification(DataRow inputRow, DataTable table, DataObjectStore store)
        {
            int    num   = 0;
            object value = new string[0];
            IEnumerable <object> enumerable = store.GetDataObject("NotificationSummary") as IEnumerable <object>;

            if (enumerable != null)
            {
                num   = enumerable.Count <object>();
                value = (from notification in enumerable
                         where SeverityLevelAttribute.FromEnum(((AsyncOperationNotification)notification).Status.GetType(), ((AsyncOperationNotification)notification).Status) == SeverityLevel.Error
                         select((AsyncOperationNotification)notification).AlternativeId).ToArray <string>();
            }
            DataRow dataRow = table.NewRow();

            dataRow["TotalCount"] = num.ToString();
            dataRow["ErrorItems"] = value;
            table.Rows.Add(dataRow);
        }