Exemplo n.º 1
0
        /// <summary> Load the data in the table </summary>
        public override void LoadData()
        {
            DataTable table = GetAllData();

            foreach (DataRow row in table.Rows)
            {
                long     resourceId = ResourceId.Parse(row);
                Resource resource   = TableManager.Resource.GetResource(resourceId);
                DateTime date       = Date.Parse(row);
                int      price      = Price.Parse(row);
                resource.AddPriceHistory(date, price);
            }
        }