예제 #1
0
        // (Konrad) We are not going to process warnings here.
#else
        private static void OnFailureProcessing(object sender, FailuresProcessingEventArgs e)
        {
            var fa  = e.GetFailuresAccessor();
            var doc = fa.GetDocument();

            foreach (var fma in fa.GetFailureMessages(FailureSeverity.Warning))
            {
                var w = new WarningItem(fma, doc);
                if (Warnings.ContainsKey(w.UniqueId))
                {
                    continue;
                }

                Warnings.Add(w.UniqueId, w);
            }
        }