Exemple #1
0
 public Year()
 {
     for (int i = 0; i < 12; i++)
     {
         monthDatas[i]       = new MonthData();
         monthDatas[i].Month = i + 1;
     }
 }
        private void SaveToStorage()
        {
            var       data      = Components.Select(item => item.DataPerDay).ToList();
            int       month     = DateTime.Parse(labelOfCurrentMonth.Text).Month;
            MonthData monthData = storage.CurrentYear.GetMonthData(month);

            monthData.ComponentData = data;

            storage.Save();
        }