예제 #1
0
        private void LoadData()
        {
            _supplies.Rows.Clear();

            List <SupplyVM> supplies = _supplyDao.GetSupplies();

            foreach (SupplyVM supply in supplies)
            {
                _supplies.Rows.Add(supply, supply.Name, supply.Stock, supply.RealStock, Utils.FormatDate(supply.lastTimeSupplied), "Edit");
            }

            AddColorToStock(supplies.Count);
        }