internal void RenderFieldnames(ShowFieldnameState thestate) { string thetext = ""; if (isParamItemNode) { switch (thestate) { case ShowFieldnameState.sfsNone: thetext = ThisParamItem.Label; break; case ShowFieldnameState.sfsFirst: thetext = ThisParamItem.Fieldname + " : " + ThisParamItem.Label; break; case ShowFieldnameState.sfsLast: thetext = ThisParamItem.Label + " : " + ThisParamItem.Fieldname; break; } BeginEdit(); Text = thetext; EndEdit(false); } }
private void ToolStripMenuItemShowFieldLast_CheckedChanged(object sender, EventArgs e) { if ((!SettingShowFieldname) && (ToolStripMenuItemShowFieldLast.Checked)) { SettingShowFieldname = true; toolStripMenuItemNoShowField.Checked = false; ToolStripMenuItemShowFieldFirst.Checked = false; FShowFieldname = ShowFieldnameState.sfsLast; ResetFieldname(); SettingShowFieldname = false; } }