internal void CorrectSlotsAfterDeletion(int slot, bool wasCollapsed)
 {
     if (wasCollapsed)
     {
         if (slot > this.FirstScrollingSlot)
         {
             this.LastScrollingSlot--;
         }
     }
     else if (_owner.IsSlotVisible(slot))
     {
         UnloadScrollingElement(slot, true /*updateSlotInformation*/, true /*wasDeleted*/);
     }
     // This cannot be an else condition because if there are 2 rows left, and you delete the first one
     // then these indexes need to be updated as well
     if (slot < this.FirstScrollingSlot)
     {
         this.FirstScrollingSlot--;
         this.LastScrollingSlot--;
     }
 }
 internal bool IsSlotVisible(int slot)
 {
     return(_grid.IsSlotVisible(slot));
 }