C# Класс Globals.askForName

The ask for name.
Наследование: System.Windows.Forms.Form
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
tbNewName System.Windows.Forms.TextBox
tbOldName System.Windows.Forms.TextBox

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

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

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

askForName() публичный Метод

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
Результат System

getTextBoxValue() публичный Метод

The get text box value.
public getTextBoxValue ( ) : string
Результат string

nameBox_TextChanged() публичный Метод

The name box_ text changed
public nameBox_TextChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

Описание свойств

tbNewName публичное свойство

public System.Windows.Forms.TextBox tbNewName
Результат System.Windows.Forms.TextBox

tbOldName публичное свойство

public System.Windows.Forms.TextBox tbOldName
Результат System.Windows.Forms.TextBox