Namespace: Consultingwerk.Windows.Util.Forms
Class 
SampleErrorMessageFormButtonProvider Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.Windows.Util.Forms.ErrorMessageFormButtonProvider
Implements: Consultingwerk.Windows.Util.Forms.IErrorMessageFormButtonProvider

File:SampleErrorMessageFormButtonProvider
Purpose:Sample service that provides custom Buttons for the
ErrorMessageForm
Syntax:Allows adding buttons to report errors etc.
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Jan 10 14:27:31 CET 2014
Notes:The ErrorMessageForm assigns Location and Anchor. All other
properties are to be assigned by the service implementation
Purpose: Creates the Open File Drop down
Notes:



Top Method Summary
Options Name Purpose
# CreateOpenFileDropDown (Button, Error) Creates the Open File Drop down
+ System.Collections.Generic.List <System.Windows.Forms.Button> GetButtonsForError (Error) Returns the List of Buttons to be added to the dialog
Overrides Consultingwerk.Windows.Util.Forms.ErrorMessageFormButtonProvider:GetButtonsForError (Error)
+ LOGICAL HandleButtonClick (Button, Error) Handles the click event of a custom button
Overrides Consultingwerk.Windows.Util.Forms.ErrorMessageFormButtonProvider:HandleButtonClick (Button, Error)
# ListViewDoubleClickHandler (Object, EventArgs) Event handler for the DoubleClick event of the ListView
# PopulateListView (ListView, character) Populates the List View from the stack trace


Method Detail
Top

PROTECTED CreateOpenFileDropDown (Button, Error)

Purpose: Creates the Open File Drop down
Notes:

Parameters:
poButton System.Windows.Forms.Button
The reference to the Button that was clicked
poError Progress.Lang.Error
The reference to the error that is currently shown
Top

PUBLIC System.Collections.Generic.List <System.Windows.Forms.Button> GetButtonsForError (Error)

Overrides Consultingwerk.Windows.Util.Forms.ErrorMessageFormButtonProvider:GetButtonsForError (Error)
Purpose: Returns the List of Buttons to be added to the dialog
Notes: Buttons should have a meaningful name

Parameters:
poError Progress.Lang.Error
The error that is currently being processed
Returns System.Collections.Generic.List <System.Windows.Forms.Button>
The List the System.Windows.Forms.Button objects to be added to the ErrorMessageForm
Top

PUBLIC LOGICAL HandleButtonClick (Button, Error)

Overrides Consultingwerk.Windows.Util.Forms.ErrorMessageFormButtonProvider:HandleButtonClick (Button, Error)
Purpose: Handles the click event of a custom button
Notes:

Parameters:
poButton System.Windows.Forms.Button
The reference to the Button that was clicked
poError Progress.Lang.Error
The reference to the error that is currently shown
Returns LOGICAL
Logical value indicating if the Error Message Form should be closed (True = Close)
Top

PROTECTED ListViewDoubleClickHandler (Object, EventArgs)

Purpose: Event handler for the DoubleClick event of the ListView
Notes:

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

PROTECTED PopulateListView (ListView, character)

Purpose: Populates the List View from the stack trace
Notes:

Parameters:
poListView System.Windows.Forms.ListView
The reference to the ListView control
pcStackTrace CHARACTER
The error stack trace


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:32:57