C# Class Globals.askForName

The ask for name.
Inheritance: System.Windows.Forms.Form
Mostra file Open project: troymac1ure/Entity Class Usage Examples

Public Properties

Property Type Description
tbNewName System.Windows.Forms.TextBox
tbOldName System.Windows.Forms.TextBox

Public Methods

Method Description
askForName ( string titleText, string labelText, string buttonText, string oldTagName, string newTagName, bool smartChange ) : System

Initializes a new instance of the askForName class.

getTextBoxValue ( ) : string

The get text box value.

nameBox_TextChanged ( object sender, EventArgs e ) : void

The name box_ text changed

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.

askForName_FormClosing ( object sender, FormClosingEventArgs e ) : void

The ask for name_ form closing.

createButton_Click ( object sender, EventArgs e ) : void

The create button_ click.

nameBox_Leave ( object sender, EventArgs e ) : void

The name box_ leave.

tbNewName_TextChanged ( object sender, EventArgs e ) : void

When the askForMapName dialog text changes

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

askForName() public method

Initializes a new instance of the askForName class.
public askForName ( string titleText, string labelText, string buttonText, string oldTagName, string newTagName, bool smartChange ) : System
titleText string The text to display on the title bar.
labelText string The text to display on the label.
buttonText string The text to display on the button.
oldTagName string The tag's original name (path included).
newTagName string The new name of the tag (without path)
smartChange bool if set to True, will update the top label as a tag when the bottom label is changed
return System

getTextBoxValue() public method

The get text box value.
public getTextBoxValue ( ) : string
return string

nameBox_TextChanged() public method

The name box_ text changed
public nameBox_TextChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

tbNewName public_oe property

public System.Windows.Forms.TextBox tbNewName
return System.Windows.Forms.TextBox

tbOldName public_oe property

public System.Windows.Forms.TextBox tbOldName
return System.Windows.Forms.TextBox