In this step you will learn now to add resources, constraints, and predecessors to specific tasks.
To add resources to the project at design time:
- Right-click on the control and select Edit Resources.
The C1GanttView.Resources Collection Editor appears.
- Click the Add button twice to add two resources to the collection.
- Set Resource 1 Name to Tim and Resource 2 Name to John.
- Click OK to save and close the C1GanttView.Resources Collection Editor.
To assign resources to specific tasks at design time:
- Right-click on the control and select Edit Tasks.
The C1GanttView.Tasks Collection Editor appears.
- Select the Conception Approval task and click on the ellipsis button next to ResourceRefs.
The Task.ResourceRefs Collection Editor appears.
- Click Add to add a reference to Tim.
- Set the Resource to Tim.
If you wanted to assign more resources to that task you could click Add again to assign another resource.
- Click OK to save and close the Task.ResourceRefs Collection Editor.
- Select the Analysis and Design task and click on the ellipsis button next to ResourceRefs.
The Task.ResourceRefs Collection Editor appears.
- Click Add to add a reference to John.
- Set the Resource to John.
- Click OK to save and close the Task.ResourceRefs Collection Editor.
For more information on resources see Task Resources.
To add predecessors to the project at design time:
- Right-click on the control and select Edit Tasks.
The C1GanttView.Tasks Collection Editor appears.
- Select the Requirements Set B task and click on the ellipsis button next to Predecessors.
The Task.Predecessors Collection Editor appears.
- Click Add to add a predecessor.
- Set the Predecessor Task to Requirements Set A.
- Click OK to save and close the Task.Predecessors Collection Editor.
- Select the Requirements Set Ctask and click on the ellipsis button next to Predecessors.
The Task.Predecessors Collection Editor appears.
- Click Add to add a predecessor.
- Set the Predecessor Task to Requirements Set B.
- Set the PredecessorType to FinishToStart.
- 10. Click OK to save and close the Task.Predecessors Collection Editor.
For more information on predecessors see Creating Predecessors.
To add constraints to the project at design time:
- Right-click on the control and select Edit Tasks.
The C1GanttView.Tasks Collection Editor appears.
- Select the Requirements task and set the ConstraintType to StartNoEarlierThan.
- Set the ConstraintDate to 7/4/2012.
- Select the Analysis and Design task and set the ConstraintType to MustStartOn.
- Set the ConstraintDate to 7/10/2012.
- Click OK to save and close the C1GanttView.Tasks Collection Editor.
For more information on constraints see Task Constraints.
See Also