Esempio n. 1
0
        public ScheduleViewModel()
        {
            _groupAdmin    = new GroupAdmin();
            _scheduleAdmin = new ScheduleAdmin();
            Groups         = new ObservableCollection <Group>(_groupAdmin.GetAllGroups());
            SelectedGroup  = Groups[0];
            CalendarTypes  = new ObservableCollection <string>()
            {
                "Kalenderplaner", "Grundplaner"
            };
            SelectedCalenderType = CalendarTypes[0];
            SelectedDate         = DateTime.Today;



            AddEmployeeColumn = new RelayCommand(parameter => AddEmployeeButtonClicked?.Invoke(), null);

            CreateEmployeeScheduleViewModels();
            LoadTemplateSchedule = new RelayCommand(parameter => LoadTemplateScheduleButtonClicked?.Invoke(EmployeeScheduleViewModels), parameter => (SelectedDate != null && SelectedCalenderType == CalendarTypes[0]));
        }
Esempio n. 2
0
 public EmployeeScheduleViewModel()
 {
     _groupAdmin    = new GroupAdmin();
     _scheduleAdmin = new ScheduleAdmin();
     TaskItems      = new List <TaskItem>();
 }
Esempio n. 3
0
 public EmployeeOverviewViewModel()
 {
     groupAdmin    = new GroupAdmin();
     _dateOfMonday = GetDateOfMonday(DateTime.Today);
 }