Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }