public bool IsPageEmpty(int pageNum)
 {
     if (pageNum == this.CurrentPageIdx)
     {
         return(InventoryPage.IsItemSetEmpty(Main.LocalPlayer.inventory));
     }
     else
     {
         return(this.Pages[pageNum].IsEmpty());
     }
 }
        ////////////////

        public bool IsEmpty()
        {
            return(InventoryPage.IsItemSetEmpty(this.Items));
        }