Class EbicsMessageBox

Namespace
Subsembly.EBICS
Assembly
Subsembly.EBICS.Win32.dll
public static class EbicsMessageBox
Inheritance
EbicsMessageBox
Inherited Members

Methods

GetErrorIcon(EbicsReturnCode)

Provides a suitable MessageBoxIcon value for the error class of this return code.

public static MessageBoxIcon GetErrorIcon(EbicsReturnCode aReturnCode)

Parameters

aReturnCode EbicsReturnCode

Returns

MessageBoxIcon

ShowError(Form, string, MessageBoxButtons)

public static DialogResult ShowError(Form aForm, string sErrorText, MessageBoxButtons nButtons = MessageBoxButtons.OK)

Parameters

aForm Form
sErrorText string
nButtons MessageBoxButtons

Returns

DialogResult

ShowError(IWin32Window, string, string, MessageBoxButtons)

public static DialogResult ShowError(IWin32Window aOwnerWindow, string sCaption, string sErrorText, MessageBoxButtons nButtons = MessageBoxButtons.OK)

Parameters

aOwnerWindow IWin32Window
sCaption string
sErrorText string
nButtons MessageBoxButtons

Returns

DialogResult

ShowException(Form, Exception, MessageBoxButtons)

public static DialogResult ShowException(Form aForm, Exception aException, MessageBoxButtons nButtons = MessageBoxButtons.OK)

Parameters

aForm Form
aException Exception
nButtons MessageBoxButtons

Returns

DialogResult

ShowException(IWin32Window, string, Exception, MessageBoxButtons)

public static DialogResult ShowException(IWin32Window aOwnerWindow, string sCaption, Exception aException, MessageBoxButtons nButtons = MessageBoxButtons.OK)

Parameters

aOwnerWindow IWin32Window
sCaption string
aException Exception
nButtons MessageBoxButtons

Returns

DialogResult

ShowOrderResult(IWin32Window, string, EbicsOrder)

Evaluates order result and displays an error message if suitable.

public static bool ShowOrderResult(IWin32Window aOwnerWindow, string sCaption, EbicsOrder aOrder)

Parameters

aOwnerWindow IWin32Window
sCaption string

The message box caption to be used with error messages. Must not be null.

aOrder EbicsOrder

The order that was executed. Must not be null.

Returns

bool

If the technical return code and the business return code of the order indicate a successful execution, then no message box is shown and true is returned. If any return code indicates an error, then a nice message box is shown to the user and false is returned.

ShowPrompt(IWin32Window, string)

Shows a modeless prompt.

public static Form ShowPrompt(IWin32Window aOwnerWindow, string sPrompt)

Parameters

aOwnerWindow IWin32Window
sPrompt string

Returns

Form

ShowSecurityError(IWin32Window, EbicsContact, IEbicsSecurityMedium)

public static void ShowSecurityError(IWin32Window aOwnerWindow, EbicsContact aContact, IEbicsSecurityMedium aSecurityMedium)

Parameters

aOwnerWindow IWin32Window
aContact EbicsContact
aSecurityMedium IEbicsSecurityMedium