C# 클래스 DSShared.Windows.InputBox

파일 보기 프로젝트 열기: pmprog/OpenXCOM.Tools

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
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

메소드 상세

Dispose() 보호된 메소드

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

InputBox() 공개 메소드

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

InputBox() 공개 메소드

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

InputBox() 공개 메소드

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

InputBox() 공개 메소드

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

InputBox() 공개 메소드

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
리턴 System

Show() 공개 메소드

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

ShowDialog() 공개 정적인 메소드

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
리턴 DialogResult