public static void ShowWarning(IWin32Window owner, string message, Exception exception, PublishExceptionMode publishMode) { if (exception == null) { throw new ArgumentNullException("exception"); } // defer... ShowWarning(owner, message, exception, null, publishMode); }
public static void ShowWarning(IWin32Window owner, string message, Exception exception, object state, PublishExceptionMode publishMode) { AlertFlags flags = AlertFlags.Normal; if (publishMode == PublishExceptionMode.DoNotPublishException) { flags |= AlertFlags.SuppressErrorReport; } // defer... ShowWarning(owner, message, exception, state, flags); }