public void RemoveItem() { if (ListBoxItems.Count > 0) { ListBoxItems.RemoveAt(ListBoxItems.Count - 1); } }
/// <summary> /// Removes an element from the ListBox /// </summary> /// <param name="itemIndex"></param> public void RemoveItem(int itemIndex) { ListBoxItems.RemoveAt(itemIndex); }