public EmployeeScheduleViewModel(EmployeeSchedule es) { _groupAdmin = new GroupAdmin(); _scheduleAdmin = new ScheduleAdmin(); EmployeeSchedule = es; TaskItems = EmployeeSchedule.GetTasks(); }
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])); }
public EmployeeScheduleViewModel() { _groupAdmin = new GroupAdmin(); _scheduleAdmin = new ScheduleAdmin(); TaskItems = new List <TaskItem>(); }