C# Class Nexus.UI.Controls.PromptDialog

Show file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
PromptDialog ( ) : System

The default constructor.

ShowDialog ( IWin32Window p_wndOwner, string p_strPrompt, string p_strCaption, string p_strDefault ) : string

Displays a prompt dialog with the given message.

ShowDialog ( IWin32Window p_wndOwner, string p_strPrompt, string p_strCaption, string p_strDefault, string p_strValidationPattern, string p_strErrorMessage ) : string

Displays a prompt dialog with the given message.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

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

butOK_Click ( object sender, EventArgs e ) : void

Hanldes the Control.Click event of the OK button.

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

PromptDialog() public method

The default constructor.
public PromptDialog ( ) : System
return System

ShowDialog() public static method

Displays a prompt dialog with the given message.
public static ShowDialog ( IWin32Window p_wndOwner, string p_strPrompt, string p_strCaption, string p_strDefault ) : string
p_wndOwner IWin32Window The owner of the prompt window.
p_strPrompt string The prompt message.
p_strCaption string The title of the dialog window.
p_strDefault string The default prompted text.
return string

ShowDialog() public static method

Displays a prompt dialog with the given message.
public static ShowDialog ( IWin32Window p_wndOwner, string p_strPrompt, string p_strCaption, string p_strDefault, string p_strValidationPattern, string p_strErrorMessage ) : string
p_wndOwner IWin32Window The owner of the prompt window.
p_strPrompt string The prompt message.
p_strCaption string The title of the dialog window.
p_strDefault string The default prompted text.
p_strValidationPattern string The regular expression to use to validate the entered text.
p_strErrorMessage string The error message to display if the entered text fails validation.
return string