Task Mode allows you to choose how much control you want to have over a project's task scheduling. You can either schedule a task manually and can have it scheduled automatically.
In C1GanttView, task mode is represented by the Mode property of the Task class. The Mode property uses TaskMode enumeration to change the task mode by setting one of the following values:
The manual task is the default task type for C1GanttView. It provides greater flexibility for users planning and managing their schedule since it can be positioned anywhere in your schedule and the project won’t move it. Manual tasks do not change the scheduling of the tasks for constraints, project resources, and dependencies. They are useful when project managers don’t have complete information about each task. For example, they may know when the start date of the project is, but not its duration until they receive an estimation from their team members.
Automatic scheduling provides a more structured way of managing project schedules. The GanttView automatically calculates the best earliest and latest dates for tasks once the user enters the information for the task duration, constraint dates, and number of resources. If something changes in the schedule such as the duration, task dependencies, or constraints, the GanttView project automatically adjusts the project schedule for you so you have the optimal schedule.
Each task can be changed back and forth from automatic to manual. You can use the Mode property of the Task class to change task mode.
Changing a tasks’ mode can affect the project schedule in the following ways:
Use the below code to change the mode of a task programmatically.
C# |
Copy Code
|
---|---|
//Change the mode to automatic Task1.Mode = TaskMode.Automatic; //Change the mode to manual Task1.Mode = TaskMode.Manual; |