C# Class DSShared.Windows.InputBox

Afficher le fichier Open project: pmprog/OpenXCOM.Tools

Méthodes publiques

Méthode Description
InputBox ( ) : System

Default constructor, Calls this("Input value","Input Box","")

InputBox ( string caption ) : System

Constructor, calls this(caption,"Input","")

InputBox ( string title, Panel contents ) : System

InputBox ( string caption, string title ) : System

Constructor, calls this(caption, title,"")

InputBox ( string caption, string title, string defaultValue ) : System

Constructor specifying all arguements

Show ( IWin32Window parent ) : DialogResult

Gives focus to the text box and calls ShowDialog()

ShowDialog ( string title, Panel contents ) : DialogResult

Creates an InputBox(title,contents) and returns the value of calling ShowDialog() on it

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.

buttonClick ( object sender, EventArgs e ) : void
txtInput_KeyDown ( object sender, System e ) : void

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

InputBox() public méthode

Default constructor, Calls this("Input value","Input Box","")
public InputBox ( ) : System
Résultat System

InputBox() public méthode

Constructor, calls this(caption,"Input","")
public InputBox ( string caption ) : System
caption string
Résultat System

InputBox() public méthode

public InputBox ( string title, Panel contents ) : System
title string Title of the form
contents Panel Panel containing UI elements for the user to select
Résultat System

InputBox() public méthode

Constructor, calls this(caption, title,"")
public InputBox ( string caption, string title ) : System
caption string
title string
Résultat System

InputBox() public méthode

Constructor specifying all arguements
public InputBox ( string caption, string title, string defaultValue ) : System
caption string Text that will be shown above the text box
title string Title of the form
defaultValue string Initial value of the text box
Résultat System

Show() public méthode

Gives focus to the text box and calls ShowDialog()
public Show ( IWin32Window parent ) : DialogResult
parent IWin32Window
Résultat DialogResult

ShowDialog() public static méthode

Creates an InputBox(title,contents) and returns the value of calling ShowDialog() on it
public static ShowDialog ( string title, Panel contents ) : DialogResult
title string
contents Panel
Résultat DialogResult