using Quadarax.Foundation.Core.Exceptions; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace qdr.app.bundleboiler.ui.Dialogs { public partial class ErrorMessageDialog : Form { public ErrorMessageDialog() { InitializeComponent(); } public ErrorMessageDialog(Quadarax.Foundation.Core.Logging.ILogger logger, string caption, Exception e) : this() { var log = logger.GetLogger(GetType().Name); lCaption.Text = caption; tbDetail.Text = e.Dump(); log.Log(Quadarax.Foundation.Core.Logging.LogSeverityEnum.Error, "Error dialog shown following exception",e); } private void butClose_Click(object sender, EventArgs e) { Close(); } private void butCopyClipboard_Click(object sender, EventArgs e) { Clipboard.SetText(tbDetail.Text); } } }