C# Class Hourglass.Windows.ErrorDialog

A window that displays an error.
ファイルを表示 Open project: Dziemborowicz/Hourglass Class Usage Examples

Public Methods

Method Description
ErrorDialog ( ) : System.Windows

Initializes a new instance of the ErrorDialog class.

ShowDialog ( string title, string message = null, string details = null ) : void

Opens the window and returns only when the window is closed.

Private Methods

Method Description
InitializeMaxSize ( ) : void

Initializes the Window.MaxWidth and Window.MaxHeight properties.

InitializeResources ( ) : void

Initializes localized resources.

ShowDetailsButtonClick ( object sender, RoutedEventArgs e ) : void

Invoked when the ShowDetailsButton is clicked.

Method Details

ErrorDialog() public method

Initializes a new instance of the ErrorDialog class.
public ErrorDialog ( ) : System.Windows
return System.Windows

ShowDialog() public method

Opens the window and returns only when the window is closed.
public ShowDialog ( string title, string message = null, string details = null ) : void
title string The title for the error dialog..
message string The error message to show. (Optional.)
details string Details of the error, such as a call stack. (Optional.)
return void