public UnhandledExceptionWindow(Exception exception, ProgramInformation programInformation, string title, ImageSource windowIcon, ImageSource errorIcon, bool showDetails) : this() { this.Title = title; if (windowIcon != null) { this.Icon = windowIcon; } else { this.Icon = Wsapm.Wpf.Controls.Properties.Resources.Icon_Error_Windows.ToImageSource(); } if (errorIcon != null) { this.errorIcon.Source = errorIcon; } else { this.errorIcon.Source = Wsapm.Wpf.Controls.Properties.Resources.Icon_Error_Windows.ToImageSource(); } this.currentException = exception; this.programInformation = programInformation; this.showDetailsFromBeginning = showDetails; LoadExceptionInfo(); if (this.showDetailsFromBeginning) { ExpandDialog(); } else { CollapseDialog(); } }
public UnhandledExceptionWindow(Exception exception, ProgramInformation programInformation, string title, ImageSource windowIcon, ImageSource errorIcon) : this(exception, programInformation, title, windowIcon, errorIcon, false) { }