private void PopulateInventory() { Items itm = new Items(); lblAll.Text = itm.CountAllItems().ToString(); if (itm.CountAllItems() == 0) { listAll.Visible = false; listAll.Text = ""; } lblNotEDL.Text = itm.CountEDLItems().ToString(); if (itm.CountEDLItems() == 0) { listNotEDL.Visible = false; listNotEDL.Text = ""; } lblFree.Text = itm.CountFreeItems().ToString(); if (itm.CountFreeItems() == 0) { listFree.Visible = false; listFree.Text = ""; } lblRefrigerated.Text = itm.CountRefrigeratedItems().ToString(); if (itm.CountRefrigeratedItems() == 0) { listRefrigerated.Visible = false; listRefrigerated.Text = ""; } lblPediatric.Text = itm.CountPediatricItems().ToString(); if (itm.CountPediatricItems() == 0) { listPediatric.Visible = false; listPediatric.Text = ""; } }