public int AddTextBox(string label)
{
flowLayoutPanel1.SuspendLayout();
flowLayoutPanel1.Controls.Remove(OkCancelPanel);
List<string> labels = new List<string>();
labels.Add(label);
int labelId = mDynamicUiHelper.AddUi(flowLayoutPanel1, labels, UiType.Label);
Label labelControl = mDynamicUiHelper.GetControl(labelId) as Label;
labelControl.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0);
labelControl.Height = 16;
List<string> values = new List<string>();
values.Add("");
int returnValue = mDynamicUiHelper.AddUi(flowLayoutPanel1, values, UiType.TextBox);
TextBox textBox = mDynamicUiHelper.GetControl(returnValue) as TextBox;
textBox.Margin = new Padding(3, 0, 3, 3);
flowLayoutPanel1.Controls.Add(OkCancelPanel);
flowLayoutPanel1.ResumeLayout();
flowLayoutPanel1.PerformLayout();
return returnValue;
}