private void RemoveItemsFromListbox(MyGuiControlListbox listbox, bool removeItems = false) 
 {
     foreach (int key in listbox.GetItemsKeys())
     {
         m_removedInventoryItemIDs.Add(key);
     }
     listbox.RemoveAllItems(removeItems);
     if (removeItems)
     {                
         AddFreeRowsIfCan(listbox, 1);
     }            
 }
 private int? GetKeyFromOneItemListbox(MyGuiControlListbox listbox)
 {
     List<int> keys = listbox.GetItemsKeys();
     if (keys.Count == 0)
     {
         return null;
     }
     else
     {
         return keys[0];
     }
 }