public void aggregateStoreWeek()
 {
     storeNames.Clear();
     foreach (Item item in itemsModel.GetMonthItems(1 + selectedMonth, DateTime.Now.Year - selectedYear))
     {
         if (storeNames.ContainsKey(item.Store_name))
         {
             storeNames[item.Store_name][(item.Date_of_purchase.Day) / AggregationDay.Count()] += item.Quantity;
         }
         else
         {
             storeNames.Add(item.Store_name, new int[AggregationWeek.Count()]);
             storeNames[item.Store_name][(item.Date_of_purchase.Day) / AggregationDay.Count()] = item.Quantity;
         }
     }
 }
 public void aggregateCategoryWeek()
 {
     categories.Clear();
     foreach (Item item in itemsModel.GetMonthItems(1 + selectedMonth, DateTime.Now.Year - selectedYear))
     {
         if (categories.ContainsKey(item.Categorie))
         {
             categories[item.Categorie][(item.Date_of_purchase.Day) / AggregationDay.Count()] += item.Quantity;
         }
         else
         {
             categories.Add(item.Categorie, new int[AggregationWeek.Count()]);
             categories[item.Categorie][(item.Date_of_purchase.Day) / AggregationDay.Count()] = item.Quantity;
         }
     }
 }
 public void aggregateProductWeek()
 {
     itemKeys.Clear();
     foreach (Item item in itemsModel.GetMonthItems(1 + selectedMonth, DateTime.Now.Year - selectedYear))
     {
         if (itemKeys.ContainsKey(item.SerialKey))
         {
             itemKeys[item.SerialKey][(item.Date_of_purchase.Day) / AggregationDay.Count()] += item.Quantity;
         }
         else
         {
             itemKeys.Add(item.SerialKey, new int[AggregationWeek.Count()]);
             itemKeys[item.SerialKey][(item.Date_of_purchase.Day) / AggregationDay.Count()] = item.Quantity;
         }
     }
 }