public override void Execute(object parameter) { var dialog = new ProjectInformationDialog(_workspaceService.Current) { Owner = _mainWindow.Value }; if (dialog.ShowDialog() == true) { _workspaceService.ApplyChanges(dialog.Project); } }
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(); }
public override void Execute(object parameter) { var newProject = Project.Create(); _workspaceService.ApplyChanges(newProject); }