C# Class DSShared.Windows.InputBox

Show file Open project: pmprog/OpenXCOM.Tools

Public Methods

Method 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

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.

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

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

InputBox() public method

Default constructor, Calls this("Input value","Input Box","")
public InputBox ( ) : System
return System

InputBox() public method

Constructor, calls this(caption,"Input","")
public InputBox ( string caption ) : System
caption string
return System

InputBox() public method

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

InputBox() public method

Constructor, calls this(caption, title,"")
public InputBox ( string caption, string title ) : System
caption string
title string
return System

InputBox() public method

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
return System

Show() public method

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

ShowDialog() public static method

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
return DialogResult