private void lblParm_Click(object sender, EventArgs e)
{
MPTLabel label = (MPTLabel)sender;
int cursorPos = cbFormat.SelectionStart;
string text = cbFormat.Text;
string parameter = Util.LabelToParameter(label.Name);
if (parameter != String.Empty)
{
text = text.Insert(cursorPos, parameter);
cbFormat.Text = text;
if (label.Name == "lblParmFolder")
cursorPos += 1;
else
cursorPos += 3;
cbFormat.SelectionStart = cursorPos;
}
}