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 Get's and sets if the stack trace of the error should be opened or not
+ Progress.Lang.Error Exception Gets and sets the refernece to the error object
+ Progress.Lang.Error InnerException Gets and sets the reference to the inner error object
+ CHARACTER MessageText Get's and sets the error message text
+ CHARACTER StackTraceText Get's and sets the error stack trace text


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

Purpose: Get's and sets if the stack trace of the error should be opened or not
Notes:

Returns LOGICAL
Top

PUBLIC Progress.Lang.Error Exception

Purpose: Gets and sets the refernece to the error object
Notes:

Returns Progress.Lang.Error
Top

PUBLIC Progress.Lang.Error InnerException

Purpose: Gets and sets the reference to the inner error object
Notes:

Returns Progress.Lang.Error
Top

PUBLIC CHARACTER MessageText

Purpose: Get's and sets the error message text
Notes:

Returns CHARACTER
Top

PUBLIC CHARACTER StackTraceText

Purpose: Get's and sets the error stack trace text
Notes:

Returns CHARACTER


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:54:44