コード例 #1
0
        private void SelectTodayItem()
        {
            if (CurrentWeek == null)
            {
                return;
            }
            var today      = DateTime.UtcNow;
            var todayIndex = (int)today.DayOfWeek - 1;

            SelectedWeekIndex           = 0;
            CurrentWeek.SelectedDayItem = CurrentWeek.Days.FirstOrDefault(d => d.Weekday == (todayIndex + 1));
            CurrentWeek.SelectedDayItem = null;

            _flurryPublisher.PublishActionbarToday(_university, _isTeacher,
                                                   (_isTeacher ? _teacher.Name : _group.GroupName), (_isTeacher ? _teacher.Id : _group.Id));
        }