Exemplo n.º 1
0
        public LessonViewModel(IMvxNavigationService navigationService, ILessonsProvider lessonsProvider) : base(navigationService)
        {
            _navigationService = navigationService;
            _lessonsProvider   = lessonsProvider;

            OpenHomewoks = new MvxAsyncCommand(ShowHomeWorks, () => Lesson.HomeworksActivatingDate <= DateTime.Now || LessonProgress.DoneHomeWorks >= LessonProgress.TotalHomeWorks);
            GoToVideo    = new MvxAsyncCommand(ShowVideo);
        }
Exemplo n.º 2
0
        public CourseViewModel(IMvxNavigationService navigationService, ILessonsProvider lessonsProvider, ICoursesProvider coursesProvider) : base(navigationService)
        {
            _navigationService = navigationService;
            _lessonsProvider   = lessonsProvider;
            _coursesProvider   = coursesProvider;

            StartCourse    = new MvxAsyncCommand(StartThisCourse);
            OpenRating     = new MvxAsyncCommand(ShowRating);
            LessonSelected = new MvxAsyncCommand <LessonWrapper>(OpenLesson);
        }
Exemplo n.º 3
0
 public ShowTimetableFacultyGroupViewMenuAction(
     TimetableFacultyGroupViewInlineMenuCreator menuCreator,
     IDayOfWeekToDateTimeConverter dayOfWeekToDateTimeConverter,
     ILessonsProvider lessonsProvider,
     OneDayLessonsToTelegramMessageText lessonsToTelegramMessageText,
     ITelegramBotService telegramBotService)
 {
     _menuCreator = menuCreator;
     _dayOfWeekToDateTimeConverter = dayOfWeekToDateTimeConverter;
     _lessonsProvider = lessonsProvider;
     _lessonsToTelegramMessageText = lessonsToTelegramMessageText;
     _telegramBotService           = telegramBotService;
 }