예제 #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            DataContext = _commandService;

            GanttControl.DataContext = new GanttViewModel(_workspace);

            UpdateTaskGridColumns();
            TaskDataGrid.DataContext = new TaskGridViewModel(_workspace);

            UpdateResourceGridColumns();
            ResourceDataGrid.DataContext = new ResourceGridViewModel(_workspace);

            UpdateAssignmentGridColumns();
            AssignmentDataGrid.DataContext = new AssignmentGridViewModel(_workspace);

            _workspace.ApplyChanges(CreateProject());
            _undoRedoService.Reset();
        }