C# Class WoopsaAds.ExceptionViewer

A WPF window for viewing Exceptions and inner Exceptions, including all their properties.
Inheritance: System.Windows.Window
Datei anzeigen Open project: woopsa-protocol/Woopsa Class Usage Examples

Public Methods

Method Description
ExceptionViewer ( string headerMessage, Exception e ) : System

The exception and header message cannot be null. If owner is specified, this window uses its Style and will appear centered on the Owner. You can override this before calling ShowDialog().

ExceptionViewer ( string headerMessage, Exception e, Window owner ) : System

The exception and header message cannot be null. If owner is specified, this window uses its Style and will appear centered on the Owner. You can override this before calling ShowDialog().

Private Methods

Method Description
AddException ( Exception e ) : void
AddLines ( List inlines, string str ) : void
AddProperty ( List inlines, string propName, object propVal ) : void
BuildTree ( Exception e, string summaryMessage ) : void
CalcMaxTreeWidth ( ) : void
CalcNoWrapWidth ( IEnumerable inlines ) : double
ExpressionViewerWindow_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
GetAppAssembly ( ) : Assembly
GetProductName ( ) : string
RenderDictionary ( IDictionary data ) : string
RenderEnumerable ( IEnumerable data ) : string
ShowCurrentItem ( ) : void
Window_Loaded ( object sender, RoutedEventArgs e ) : void
btnClose_Click ( object sender, RoutedEventArgs e ) : void
btnCopy_Click ( object sender, RoutedEventArgs e ) : void
chkWrap_Checked ( object sender, RoutedEventArgs e ) : void
chkWrap_Unchecked ( object sender, RoutedEventArgs e ) : void
treeView1_SelectedItemChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void

Method Details

ExceptionViewer() public method

The exception and header message cannot be null. If owner is specified, this window uses its Style and will appear centered on the Owner. You can override this before calling ShowDialog().
public ExceptionViewer ( string headerMessage, Exception e ) : System
headerMessage string
e System.Exception
return System

ExceptionViewer() public method

The exception and header message cannot be null. If owner is specified, this window uses its Style and will appear centered on the Owner. You can override this before calling ShowDialog().
public ExceptionViewer ( string headerMessage, Exception e, Window owner ) : System
headerMessage string
e System.Exception
owner System.Windows.Window
return System