Exemplo n.º 1
0
        /// <summary>
        /// Adds a new ListItem to the AutoListForm.
        /// </summary>
        /// <param name="text">Text of the new ListItem</param>
        /// <param name="InsertText">text to insert when this item is selected</param>
        /// <param name="ImageIndex">Image index that should be assigned to the new ListItem</param>
        /// <returns></returns>
        public ListItem Add(string text, string InsertText, int ImageIndex)
        {
            var li = new ListItem(text, ImageIndex, "", InsertText);
            LB.Items.Add(li);

            //this.LB.Sorted =true;
            return li;
        }
Exemplo n.º 2
0
 public ListItem Add(string Text, string InsertText, string ToolTip, int
     ImageIndex)
 {
     ListItem li = new ListItem(Text, ImageIndex, "", InsertText);
     this.LB.Items.Add(li);
     li.ToolTip = ToolTip;
     //this.LB.Sorted =true;
     return li;
 }