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>(); }
public EmployeeOverviewViewModel() { groupAdmin = new GroupAdmin(); _dateOfMonday = GetDateOfMonday(DateTime.Today); }