示例#1
0
 public MainViewModel(ICourseRepository courseRepository, IHistoryNavigationService navigationService, IWeekDayService weekDayService)
 {
     _courseRepository  = courseRepository;
     _navigationService = navigationService;
     _weekDayService    = weekDayService;
     _selectedWeekDay   = _weekDayService.GetToday();
 }
示例#2
0
 public CourseViewModel(ICourseRepository courseRepository, IHistoryNavigationService navigationService, IInteractionService interactionService, IWeekDayService weekDayService)
 {
     _courseRepository   = courseRepository;
     _navigationService  = navigationService;
     _interactionService = interactionService;
     _weekDayService     = weekDayService;
     Messenger.Default.Register <Course>(this, Messages.Select, SelectCourse);
     if (IsInDesignModeStatic)
     {
         Course = courseRepository.GetCoursesLazy().FirstOrDefault();
     }
 }
示例#3
0
 public WeekDayController(IWeekDayService weekDayService)
 {
     this._weekDayService = weekDayService;
 }