C# Class Nexus.UI.Controls.ExtendedMessageBox

ファイルを表示 Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon ) : DialogResult

Shows the message box.

Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon, bool &p_booRemember ) : DialogResult

Shows the message box.

Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, ExtendedMessageBoxButtons p_ebbButtons, MessageBoxIcon p_mbiIcon ) : DialogResult

Shows the message box.

Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, ExtendedMessageBoxButtons p_ebbButtons, MessageBoxIcon p_mbiIcon, bool &p_booRemember ) : DialogResult

Shows the message box.

Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, Int32 p_intMinWidth, Int32 p_intDetailHeight, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon ) : DialogResult

Shows the message box.

Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon ) : DialogResult

Shows the message box.

Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon, bool &p_booRemember ) : DialogResult

Shows the message box.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ExtendedMessageBox ( ) : System

The default constructor.

Init ( string p_strMessage, string p_strCaption, string p_strDetails, ExtendedMessageBoxButtons p_ebbButtons, MessageBoxIcon p_mbiIcon, bool p_booShowRemember ) : void

Sets up the form.

Init ( string p_strMessage, string p_strCaption, string p_strDetails, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon, bool p_booShowRemember ) : void

Sets up the form.

Show ( ExtendedMessageBox p_mbxBox, Control p_ctlParent ) : DialogResult

Shows the message box.

Private Methods

Method Description
AddButtons ( ExtendedMessageBoxButtons p_ebbButtons, bool p_booShowDetails ) : Int32
Button_Click ( object sender, EventArgs e ) : void

Handles the Control.Click event of the message box's buttons.

This set the appropriate DialogResult.

Details_Click ( object sender, EventArgs e ) : void

Handles the Control.Click event of the show details button.

This shows or hides the details pane as appropriate.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

ExtendedMessageBox() protected method

The default constructor.
protected ExtendedMessageBox ( ) : System
return System

Init() protected method

Sets up the form.
protected Init ( string p_strMessage, string p_strCaption, string p_strDetails, ExtendedMessageBoxButtons p_ebbButtons, MessageBoxIcon p_mbiIcon, bool p_booShowRemember ) : void
p_strMessage string The message to display.
p_strCaption string The windows title.
p_strDetails string The HTML-formatted details.
p_ebbButtons ExtendedMessageBoxButtons The extended buttons to display.
p_mbiIcon MessageBoxIcon The icon to display.
p_booShowRemember bool Whether to display the remember selection checkbox.
return void

Init() protected method

Sets up the form.
protected Init ( string p_strMessage, string p_strCaption, string p_strDetails, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon, bool p_booShowRemember ) : void
p_strMessage string The message to display.
p_strCaption string The windows title.
p_strDetails string The HTML-formatted details.
p_mbbButtons MessageBoxButtons The buttons to display.
p_mbiIcon MessageBoxIcon The icon to display.
p_booShowRemember bool Whether to display the remember selection checkbox.
return void

Show() public static method

Shows the message box.
public static Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon ) : DialogResult
p_ctlParent Control The parent of the message box.
p_strMessage string The message to display.
p_strCaption string The windows title.
p_mbbButtons MessageBoxButtons The buttons to display.
p_mbiIcon MessageBoxIcon The icon to display.
return DialogResult

Show() public static method

Shows the message box.
public static Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon, bool &p_booRemember ) : DialogResult
p_ctlParent Control The parent of the message box.
p_strMessage string The message to display.
p_strCaption string The windows title.
p_mbbButtons MessageBoxButtons The buttons to display.
p_mbiIcon MessageBoxIcon The icon to display.
p_booRemember bool Indicates whether the selected button should be remembered.
return DialogResult

Show() public static method

Shows the message box.
public static Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, ExtendedMessageBoxButtons p_ebbButtons, MessageBoxIcon p_mbiIcon ) : DialogResult
p_ctlParent Control The parent of the message box.
p_strMessage string The message to display.
p_strCaption string The windows title.
p_strDetails string The HTML-formatted details to display.
p_ebbButtons ExtendedMessageBoxButtons The extended buttons to display.
p_mbiIcon MessageBoxIcon The icon to display.
return DialogResult

Show() public static method

Shows the message box.
public static Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, ExtendedMessageBoxButtons p_ebbButtons, MessageBoxIcon p_mbiIcon, bool &p_booRemember ) : DialogResult
p_ctlParent Control The parent of the message box.
p_strMessage string The message to display.
p_strCaption string The windows title.
p_strDetails string The HTML-formatted details to display.
p_ebbButtons ExtendedMessageBoxButtons The extended buttons to display.
p_mbiIcon MessageBoxIcon The icon to display.
p_booRemember bool Indicates whether the selected button should be remembered.
return DialogResult

Show() public static method

Shows the message box.
public static Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, Int32 p_intMinWidth, Int32 p_intDetailHeight, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon ) : DialogResult
p_ctlParent Control The parent of the message box.
p_strMessage string The message to display.
p_strCaption string The windows title.
p_strDetails string The HTML-formatted details to display.
p_intMinWidth Int32 The minimum width of the message box.
p_intDetailHeight Int32 The initial height of the details section.
p_mbbButtons MessageBoxButtons The buttons to display.
p_mbiIcon MessageBoxIcon The icon to display.
return DialogResult

Show() public static method

Shows the message box.
public static Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon ) : DialogResult
p_ctlParent Control The parent of the message box.
p_strMessage string The message to display.
p_strCaption string The windows title.
p_strDetails string The HTML-formatted details to display.
p_mbbButtons MessageBoxButtons The buttons to display.
p_mbiIcon MessageBoxIcon The icon to display.
return DialogResult

Show() public static method

Shows the message box.
public static Show ( Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon, bool &p_booRemember ) : DialogResult
p_ctlParent Control The parent of the message box.
p_strMessage string The message to display.
p_strCaption string The windows title.
p_strDetails string The HTML-formatted details to display.
p_mbbButtons MessageBoxButtons The buttons to display.
p_mbiIcon MessageBoxIcon The icon to display.
p_booRemember bool Indicates whether the selected button should be remembered.
return DialogResult

Show() protected static method

Shows the message box.
protected static Show ( ExtendedMessageBox p_mbxBox, Control p_ctlParent ) : DialogResult
p_mbxBox ExtendedMessageBox The dialog to display.
p_ctlParent Control The parent of the message box.
return DialogResult