Namespace: Consultingwerk.Windows.Util.Forms
Class 
ErrorMessageFormButtonProvider Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Windows.Util.Forms.IErrorMessageFormButtonProvider
Inherited by: Consultingwerk.Windows.Util.Forms.SampleErrorMessageFormButtonProvider

File:ErrorMessageFormButtonProvider
Purpose: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
+ LOGICAL HandleButtonClick (Button, Error) Handles the click event of a custom button


Method Detail
Top

PUBLIC System.Collections.Generic.List <System.Windows.Forms.Button> 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)

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-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:50:38