entity.MetaEditor2.MetaEditorControlPage.addReflexive C# (CSharp) Method

addReflexive() private method

private addReflexive ( ToolStrip ts, String text ) : void
ts System.Windows.Forms.ToolStrip
text String
return void
        private void addReflexive(ToolStrip ts, String text)
        {
            ToolStripComboBox tsbc = new ToolStripComboBox();
            tsbc.AutoSize = false;
            tsbc.DropDownStyle = ComboBoxStyle.DropDownList;
            tsbc.DropDown += new EventHandler(tsbc_DropDown);
            tsbc.DropDownClosed += new EventHandler(tsbc_DropDownClosed);
            tsbc.SelectedIndexChanged += new EventHandler(tsbc_SelectedIndexChanged);
            tsbc.Size = new Size(49, 21);
            ts.Items.Insert(0, tsbc);
            if (text.Length > 23)
            {
                String t = text.Substring(0, 10) + "..." + text.Substring(text.Length - 10);
                text = t;
            }
            ToolStripLabel tsl = new ToolStripLabel(text);
            ts.Items.Insert(0, tsl);
            ToolStripSeparator tss = new ToolStripSeparator();
            ts.Items.Insert(0, tss);
        }