Пример #1
0
 public SampleDataSource()
 {
     var startDate = new DateTime(DateTime.Today.Year, 1, 1);
     while (startDate.Year == DateTime.Today.Year)
     {
         var week = new BindableWeek(startDate);
         if (AllWeeks.Count == 0 && week.WeekNumber > 50)
             startDate = startDate.AddDays(7);
         AllWeeks.Add(new BindableWeek(startDate));
         startDate = startDate.AddDays(7);
     }
 }
Пример #2
0
        private void SetWeek(BindableWeek week)
        {
            if (week != null)
            {
                itemGridView.ItemsSource = SampleDataSource.GetWeek(week.WeekNumber).Days;

            }
        }