예제 #1
0
        public override void Execute(object parameter)
        {
            var dialog = new ProjectInformationDialog(_workspaceService.Current)
            {
                Owner = _mainWindow.Value
            };

            if (dialog.ShowDialog() == true)
            {
                _workspaceService.ApplyChanges(dialog.Project);
            }
        }
예제 #2
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();
        }
예제 #3
0
        public override void Execute(object parameter)
        {
            var newProject = Project.Create();

            _workspaceService.ApplyChanges(newProject);
        }