Пример #1
0
 public EmployeeScheduleViewModel(EmployeeSchedule es)
 {
     _groupAdmin      = new GroupAdmin();
     _scheduleAdmin   = new ScheduleAdmin();
     EmployeeSchedule = es;
     TaskItems        = EmployeeSchedule.GetTasks();
 }
Пример #2
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]));
        }
Пример #3
0
 public EmployeeScheduleViewModel()
 {
     _groupAdmin    = new GroupAdmin();
     _scheduleAdmin = new ScheduleAdmin();
     TaskItems      = new List <TaskItem>();
 }