Ejemplo n.º 1
0
 private int GetListboxItemsCount(MyGuiControlListbox listbox) 
 {
     if (listbox == m_shipInventoryListBox) 
     {
         return m_shipInventoryListBox.GetItemsCount() + m_shipInventoryHideList.Count;
     }
     else if (listbox == m_otherSideInventoryListBox)
     {
         return m_otherSideInventoryListBox.GetItemsCount() + m_otherSideInventoryHideList.Count;
     }
     else 
     {
         return listbox.GetItemsCount();
     }
 }