public void aggregateStoreMonth()
 {
     storeNames.Clear();
     foreach (Item item in itemsModel.GetYearItems(DateTime.Now.Year - selectedYear))
     {
         if (storeNames.ContainsKey(item.Store_name))
         {
             storeNames[item.Store_name][item.Date_of_purchase.Month - 1] += item.Quantity;
         }
         else
         {
             storeNames.Add(item.Store_name, new int[AggregationMonth.Count()]);
             storeNames[item.Store_name][item.Date_of_purchase.Month - 1] = item.Quantity;
         }
     }
 }
 public void aggregateCategoryMonth()
 {
     categories.Clear();
     foreach (Item item in itemsModel.GetYearItems(DateTime.Now.Year - selectedYear))
     {
         if (categories.ContainsKey(item.Categorie))
         {
             categories[item.Categorie][item.Date_of_purchase.Month - 1] += item.Quantity;
         }
         else
         {
             categories.Add(item.Categorie, new int[AggregationMonth.Count()]);
             categories[item.Categorie][item.Date_of_purchase.Month - 1] = item.Quantity;
         }
     }
 }
 public void aggregateProductMonth()
 {
     itemKeys.Clear();
     foreach (Item item in itemsModel.GetYearItems(DateTime.Now.Year - selectedYear))
     {
         if (itemKeys.ContainsKey(item.SerialKey))
         {
             itemKeys[item.SerialKey][item.Date_of_purchase.Month - 1] += item.Quantity;
         }
         else
         {
             itemKeys.Add(item.SerialKey, new int[AggregationMonth.Count()]);
             itemKeys[item.SerialKey][item.Date_of_purchase.Month - 1] = item.Quantity;
         }
     }
 }