Class EbicsMessageBox
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
ShowError(Form, string, MessageBoxButtons)
public static DialogResult ShowError(Form aForm, string sErrorText, MessageBoxButtons nButtons = MessageBoxButtons.OK)
Parameters
aForm
FormsErrorText
stringnButtons
MessageBoxButtons
Returns
ShowError(IWin32Window, string, string, MessageBoxButtons)
public static DialogResult ShowError(IWin32Window aOwnerWindow, string sCaption, string sErrorText, MessageBoxButtons nButtons = MessageBoxButtons.OK)
Parameters
aOwnerWindow
IWin32WindowsCaption
stringsErrorText
stringnButtons
MessageBoxButtons
Returns
ShowException(Form, Exception, MessageBoxButtons)
public static DialogResult ShowException(Form aForm, Exception aException, MessageBoxButtons nButtons = MessageBoxButtons.OK)
Parameters
aForm
FormaException
ExceptionnButtons
MessageBoxButtons
Returns
ShowException(IWin32Window, string, Exception, MessageBoxButtons)
public static DialogResult ShowException(IWin32Window aOwnerWindow, string sCaption, Exception aException, MessageBoxButtons nButtons = MessageBoxButtons.OK)
Parameters
aOwnerWindow
IWin32WindowsCaption
stringaException
ExceptionnButtons
MessageBoxButtons
Returns
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
IWin32WindowsCaption
stringThe message box caption to be used with error messages. Must not be
null
.aOrder
EbicsOrderThe 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 andfalse
is returned.
ShowPrompt(IWin32Window, string)
Shows a modeless prompt.
public static Form ShowPrompt(IWin32Window aOwnerWindow, string sPrompt)
Parameters
aOwnerWindow
IWin32WindowsPrompt
string
Returns
ShowSecurityError(IWin32Window, EbicsContact, IEbicsSecurityMedium)
public static void ShowSecurityError(IWin32Window aOwnerWindow, EbicsContact aContact, IEbicsSecurityMedium aSecurityMedium)
Parameters
aOwnerWindow
IWin32WindowaContact
EbicsContactaSecurityMedium
IEbicsSecurityMedium