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