/// <summary>
 /// Creates a new event arguments instance.
 /// </summary>
 /// <param name="item">The activated list box item.</param>
 public ImageListBoxItemActivateEventArgs(ImageListBoxItem item)
 {
     this.Item = item;
 }
Пример #2
0
        // Public methods.
        /// <summary>
        /// Adds a new item to the image list box.
        /// </summary>
        /// <param name="text">The item text.</param>
        /// <param name="image">The item image.</param>
        public void AddItem(string text, Image image)
        {
            // Create a new image list box item.
            ImageListBoxItem item = new ImageListBoxItem(text, image);

            // Add the item to the list box.
            this.Items.Add(item);
        }