public void AddSummaryItem(string itemName, decimal itemAmount, StatisticTypeEnum statisticType, Color color)
 {
     SummaryItems.Add(new FinanceSummaryItemViewModel(itemName, itemAmount, statisticType, color));
     SummaryItems.Last().SummaryItemClickedEvent += (statistic, itemColor) =>
     {
         foreach (FinanceSummaryItemViewModel item in SummaryItems.Where(i => i.Statistic != statistic))
         {
             item.ChangeSelectState(false);
         }
         SummaryItemClickedEvent?.Invoke(statistic, SummaryDate, IsTotal, itemColor);
     };
     ChangeGroupWidth(SummaryItems.Count);
 }
 public void AddSummaryItem(string itemName, int classCount, string teacherID, Color color)
 {
     SummaryItems.Add(new TeachingClassCountItemViewModel(itemName, classCount, teacherID, color));
     SummaryItems.Last().SummaryItemClickedEvent += (id, itemColor) =>
     {
         foreach (TeachingClassCountItemViewModel item in SummaryItems.Where(i => i.TeacherID != id))
         {
             item.ChangeSelectState(false);
         }
         SummaryItemClickedEvent?.Invoke(id, itemColor, SummaryDate, IsTotal);
     };
     ChangeGroupWidth(SummaryItems.Count);
 }