Beispiel #1
0
 public DaysController(
     IDaysService daysService,
     ITrainingsService trainingsService,
     ITrainersProgramsService programsService)
 {
     this.daysService      = daysService;
     this.trainingsService = trainingsService;
     this.programsService  = programsService;
 }
        public MainWindowViewModel(
            IAuthenticationStorage authenticationStorage,
            IDialogService dialogService,
            IDaysService daysService, 
            ILoginController loginController,
            IMonthPickerViewModel monthPickerViewModel)
        {
            this.dialogService = dialogService;
            this.daysService = daysService;
            this.loginController = loginController;
            this.authenticationStorage = authenticationStorage;
            
            MonthPickerViewModel = monthPickerViewModel;
            MonthPickerViewModel.MonthChanged += MonthPickerViewModelOnMonthChanged;

            LoginCommand = new RelayCommand(async () => await Login(), () => !IsLoggedIn);
            LogoutCommand = new RelayCommand(Logout, () => IsLoggedIn);
            FillTimeCommand = new RelayCommand(FillTime);
            FillSingleDayCommand = new RelayCommand<IDayViewModel>(FillSingleDay);

            Days = daysService.GetDays(MonthPickerViewModel.CurrentDate);
        }
 public DayCreatorFilter(IDaysService daysService)
 {
     this.daysService = daysService;
 }