public void AddMenuItem(MenuItem item) { try { _container[_count] = item; _count++; } catch (IndexOutOfRangeException) { IncreaseContainerSize(); _container[_count] = item; _count++; } }
public void AddMenuItem(MenuItem item) { _container.AddMenuItem(item); }