protected virtual void UpdateLabel()
{
if (element != null && !string.IsNullOrEmpty(element.name))
{
this.lblType.Text = element.type.ToString();
this.lblText.Text = element.name + (!string.IsNullOrEmpty(element.desc) ? (" (" + element.desc + ")") : string.Empty);
if (element.multiline)
{
this.textBox.AcceptsReturn = true;
this.textBox.Multiline = true;
this.textBox.Height = 120;
this.textBox.ScrollBars = ScrollBars.Vertical;
Height = 120;
}
}
}