public void CountLoad() { CountModel CountList = null; CountList = setupGateway.CountAll(); if (CountList != null) { Tcat.Text = CountList.TotaCatagory.ToString(); Tcom.Text = CountList.TotalCompany.ToString(); TIt.Text = CountList.TotalItems.ToString(); TstoQ.Text = CountList.TotalStock.ToString(); TSprice.Text = CountList.StockPrice.ToString(); } date.Text = "Date : " + DateTime.Now.ToString("dd/MM/yyyy"); }