Exemplo n.º 1
0
 private void PushCalendarToView()
 {
     for (short dayOfWeek = 0; dayOfWeek < _calendar.Weekdays.Length; dayOfWeek++)
     {
         _mainWindow.AddDayLabelChild(_calendar.Weekdays[dayOfWeek], dayOfWeek);
     }
     for (short week = 0; week < _calDates.Length; week++)
     {
         for (short day = 0; day < _calDates[0].Length; day++)
         {
             _mainWindow.AddLabel(day, week, _calDates[week][day]);
         }
     }
     _mainWindow.SetMonthLabelText(_calendar.Month);
 }