コード例 #1
0
 public Year()
 {
     for (int i = 0; i < 12; i++)
     {
         monthDatas[i]       = new MonthData();
         monthDatas[i].Month = i + 1;
     }
 }
コード例 #2
0
        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();
        }