private ILabel CreateAndAddLabel(IPanelInfo panelInfo, UIFormField formField)
{
// IClassDef classDef = panelInfo.UIForm.UIDef.ClassDef;
ILabel labelControl = ControlFactory.CreateLabel(formField.GetLabel(), formField.IsCompulsory);
labelControl.Name = _controlNamingStrategy.GetLabelControlName(formField);
labelControl.Enabled = formField.Editable;
SetToolTip(formField, labelControl);
var containerControl = panelInfo.Panel;
EnsureControlNameUnique(labelControl, containerControl);
panelInfo.LayoutManager.AddControl(labelControl, formField.RowSpan, 1);
return(labelControl);
}