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



Top Method Summary
Options Name Purpose
+ 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)


Method Detail
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)


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