예제 #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>();
 }