Exemplo n.º 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);
            }
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
        public override void Execute(object parameter)
        {
            var newProject = Project.Create();

            _workspaceService.ApplyChanges(newProject);
        }