Namespace: Consultingwerk.Windows.Util.Forms
Class 
ErrorMessageForm Copy to Clipboard
Parent classes:
Inherits: Progress.Windows.Form
Implements: Consultingwerk.Util.Forms.IErrorMessageForm, Consultingwerk.Util.Forms.ISupportsExceptionDisplay, Consultingwerk.Util.Forms.ISupportsInnerExceptionDisplay

File:ErrorMessageForm
Purpose:Default Error Message Form
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Thu Jul 16 16:01:51 CEST 2009
Notes:Implements Consultingwerk.Util.Forms.IErrorMessageForm
and ISupportsInnerExceptionDisplay



Top Method Summary
Options Name Purpose
- btnInnerException_Click (Object, EventArgs) Event handler for the click event of the btnInnerException
- btnProperties_Click (Object, EventArgs) Event handler for the Click event of the btnProperties
- btnSessionInfo_Click (Object, EventArgs) Event handler for the Click event of the btnSessionInfo
- btnStack_Click (Object, EventArgs) Event handler for the click event of the btnInnerException
+ CopyImage () Copy's the message dialog as an image to the clipboard
- copyImageToolStripMenuItem_Click (Object, EventArgs) Event Handler for the click event of the copyImageToolStripMenuItem
+ CopyText () Copies the Dialog Box contents as plain text
- copyTextToolStripMenuItem_Click (Object, EventArgs) Event Handler for the click event of the copyTextToolStripMenuItem
# CustomButtonClickHandler (Object, EventArgs) Event handler for the click event of custom buttons
- detailsToolStripMenuItem_Click (Object, EventArgs) Event handler for the Click event of the detailsToolStripMenuItem
- InitializeComponent () Initializes the Visual Design
- KeyDownHandler (Object, KeyEventArgs) Event handler for the KeyDown event of the MessageForm
# OnLoad (EventArgs) Raises the Load event
# RenderCustomButtons () Renders buttons provided by the IErrorMessageFormButtonProvider
+ ToggleButtonState (logical) toggles the image of the btnStack based on the state

Top Constructor Summary
Options Name Purpose
+ ErrorMessageForm () Constructor of the ErrorMessageForm class

Top Property Summary
Options Name Purpose
+ LOGICAL DisplayStack
+ Progress.Lang.Error Exception
+ Progress.Lang.Error InnerException
+ CHARACTER MessageText
+ CHARACTER StackTraceText


Method Detail
Top

PRIVATE btnInnerException_Click (Object, EventArgs)

Purpose: Event handler for the click event of the btnInnerException
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

PRIVATE btnProperties_Click (Object, EventArgs)

Purpose: Event handler for the Click event of the btnProperties
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

PRIVATE btnSessionInfo_Click (Object, EventArgs)

Purpose: Event handler for the Click event of the btnSessionInfo
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

PRIVATE btnStack_Click (Object, EventArgs)

Purpose: Event handler for the click event of the btnInnerException
Notes: Toggles display of the stack trace

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

PUBLIC CopyImage ()

Purpose: Copy's the message dialog as an image to the clipboard
Notes:

Top

PRIVATE copyImageToolStripMenuItem_Click (Object, EventArgs)

Purpose: Event Handler for the click event of the copyImageToolStripMenuItem
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

PUBLIC CopyText ()

Purpose: Copies the Dialog Box contents as plain text
Notes:

Top

PRIVATE copyTextToolStripMenuItem_Click (Object, EventArgs)

Purpose: Event Handler for the click event of the copyTextToolStripMenuItem
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

PROTECTED CustomButtonClickHandler (Object, EventArgs)

Purpose: Event handler for the click event of custom buttons
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data to this event
Top

PRIVATE detailsToolStripMenuItem_Click (Object, EventArgs)

Purpose: Event handler for the Click event of the detailsToolStripMenuItem
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

PRIVATE InitializeComponent ()

Purpose: Initializes the Visual Design
Notes:

Top

PRIVATE KeyDownHandler (Object, KeyEventArgs)

Purpose: Event handler for the KeyDown event of the MessageForm
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.Windows.Forms.KeyEventArgs
The KeyEventArgs with the data for this event
Top

PROTECTED OnLoad (EventArgs)

Purpose: Raises the Load event
Notes:

Parameters:
e System.EventArgs
An EventArgs that contains the event data
Top

PROTECTED RenderCustomButtons ()

Purpose: Renders buttons provided by the IErrorMessageFormButtonProvider
Notes:

Top

PUBLIC ToggleButtonState (logical)

Purpose: toggles the image of the btnStack based on the state
Notes:

Parameters:
plDisplayStack LOGICAL
Logical value indicating if the stack trace is visible


Constructor Detail
Top

PUBLIC ErrorMessageForm ()

Purpose: Constructor of the ErrorMessageForm class
Notes:



Property Detail
Top

PUBLIC LOGICAL DisplayStack


Returns LOGICAL
Top

PUBLIC Progress.Lang.Error Exception


Returns Progress.Lang.Error
Top

PUBLIC Progress.Lang.Error InnerException


Returns Progress.Lang.Error
Top

PUBLIC CHARACTER MessageText


Returns CHARACTER
Top

PUBLIC CHARACTER StackTraceText


Returns CHARACTER


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 06:25:31