Exemplo n.º 1
0
 /// <summary>
 /// Adds export-time warning that will be raised to the common warnings list ar the end
 /// </summary>
 /// <param name="warning">Warning instance</param>
 public void AddWarning(RtWarning warning)
 {
     if (!_suppressedWarningCodes.Contains(warning.Code))
     {
         _warnings.Add(warning);
     }
 }
Exemplo n.º 2
0
 public static VisualStudioFriendlyErrorMessage Create(RtWarning warning)
 {
     return(new VisualStudioFriendlyErrorMessage(warning.Code, warning.Text, VisualStudioFriendlyMessageType.Warning, warning.Subcategory));
 }