C# Class Habanero.Faces.Base.MessageBoxConfirmer

An IConfirmer that uses a MessageBox to get confirmation from the user.
Inheritance: IConfirmer
Show file Open project: Chillisoft/habanero.faces Class Usage Examples

Public Methods

Method Description
Confirm ( string message ) : bool

Gets confirmation from the user after providing them with an option

Confirm ( string message, ConfirmationDelegate confirmationDelegate ) : void

Gets confirmation from the user after providing them with an option and executes the provided delegate once the user has responded.

MessageBoxConfirmer ( IControlFactory controlFactory, string title, MessageBoxIcon messageBoxIcon ) : Habanero.Base

Construct a MessageBoxConfirmer with the specified information.

Method Details

Confirm() public method

Gets confirmation from the user after providing them with an option
public Confirm ( string message ) : bool
message string The message to display
return bool

Confirm() public method

Gets confirmation from the user after providing them with an option and executes the provided delegate once the user has responded.
public Confirm ( string message, ConfirmationDelegate confirmationDelegate ) : void
message string The message to display
confirmationDelegate ConfirmationDelegate The delegate to execute once the user has responded.
return void

MessageBoxConfirmer() public method

Construct a MessageBoxConfirmer with the specified information.
public MessageBoxConfirmer ( IControlFactory controlFactory, string title, MessageBoxIcon messageBoxIcon ) : Habanero.Base
controlFactory IControlFactory The to use to create the MessageBox.
title string The Title to display in the MessageBox.
messageBoxIcon MessageBoxIcon The to display in the MessageBox.
return Habanero.Base