public askForName(string titleText, string labelText, string buttonText, string oldTagName, string newTagName, bool smartChange)
{
InitializeComponent();
this.Text = titleText;
this.label1.Text = labelText;
this.createButton.Text = buttonText;
this.tbOldName.Text = oldTagName;
this.tbNewName.Text = newTagName;
tag = newTagName;
this.tbNewName.Left = this.label1.Width + 20;
this.tbNewName.Width = this.Width - (this.tbNewName.Left + 20);
if (smartChange)
{
tbOldName.Enabled = true;
tbNewName.TextChanged += new EventHandler(tbNewName_TextChanged);
}
this.previousTagName = newTagName;
}