Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 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;
     }
 }