/// <summary> /// Adds a text menu item. /// </summary> /// <param name="name">The name for the instance.</param> /// <param name="text">The text to show on the instance.</param> /// <returns>The text menu item.</returns> public MenuItemText AddMenuItemText(string name, string text) { var item = new MenuItemText(name) { ConfigText = text }; this.AddControl(item); this.MustRedraw = true; return(item); }
/// <summary> /// Adds a text menu item. /// </summary> /// <param name="name">The name for the instance.</param> /// <param name="text">The text to show on the instance.</param> /// <returns>The text menu item.</returns> public MenuItemText AddMenuItemText(string name, string text) { var item = new MenuItemText(name) { ConfigText = text }; this.AddControl(item); this.MustRedraw = true; return item; }