Esempio n. 1
0
        public void AddNewDataItem(string date, string brandName, int price)
        {
            CheckCacheException();
            var newItem = new FormatDataItem();

            newItem.SetDate(date);
            newItem.SetBrandName(brandName);
            newItem.SetPrice(price);
            _dataCollection.Add(newItem);
        }
Esempio n. 2
0
        public void AddNewDataItem(int year, int month, int day, string brandName, int price)
        {
            CheckCacheException();
            var newItem = new FormatDataItem();

            newItem.SetDate(year, month, day);
            newItem.SetBrandName(brandName);
            newItem.SetPrice(price);
            _dataCollection.Add(newItem);
        }