Exemplo n.º 1
0
 //same as above, but designed to have realtime updates of text inside. So no copy of text :-)
 public Item(ref StringBuilder text, String toolTip = null, string icon = null, object userData = null, MyFontEnum?fontOverride = null)
 {
     Text         = text;
     ToolTip      = (toolTip != null) ? new MyToolTips(toolTip) : null;
     Icon         = icon;
     UserData     = userData;
     FontOverride = fontOverride;
     Visible      = true;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Do not construct directly. Use AddItem on listbox for that.
 /// </summary>
 public Item(StringBuilder text = null, String toolTip = null, string icon = null, object userData = null, MyFontEnum?fontOverride = null)
 {
     Text         = new StringBuilder((text != null) ? text.ToString() : "");
     ToolTip      = (toolTip != null) ? new MyToolTips(toolTip) : null;
     Icon         = icon;
     UserData     = userData;
     FontOverride = fontOverride;
     Visible      = true;
 }
 //same as above, but designed to have realtime updates of text inside. So no copy of text :-)
 public Item(ref StringBuilder text, String toolTip = null, string icon = null, object userData = null, MyFontEnum? fontOverride = null)
 {
     Text = text;
     ToolTip = (toolTip != null) ? new MyToolTips(toolTip) : null;
     Icon = icon;
     UserData = userData;
     FontOverride = fontOverride;
     Visible = true;
 }
 /// <summary>
 /// Do not construct directly. Use AddItem on listbox for that.
 /// </summary>
 public Item(StringBuilder text = null, String toolTip = null, string icon = null, object userData = null, MyFontEnum? fontOverride = null)
 {
     Text         = new StringBuilder((text != null) ? text.ToString() : "");
     ToolTip      = (toolTip != null) ? new MyToolTips(toolTip) : null;
     Icon         = icon;
     UserData     = userData;
     FontOverride = fontOverride;
     Visible      = true;
 }