C# Class Nexus.UI.Controls.PromptDialog

Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode 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 méthode

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

PromptDialog() public méthode

The default constructor.
public PromptDialog ( ) : System
Résultat System

ShowDialog() public static méthode

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.
Résultat string

ShowDialog() public static méthode

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.
Résultat string