Adds the specified assignment (identified as a pair of resource name and allocation units) to the AssignmentsContent property value of a specific task in the control.
Requires that AssignmentsContent property of the task items is of type string, formatted as a list of resource names separated by commas, optionally having associated allocation percents declared between square brackets (e.g.: "John, Mary [50%], Diane [12.5%]").
Namespace:
DlhSoft.Windows.ControlsAssembly: DlhSoft.ProjectData.GanttChart.LightWPF.Controls (in DlhSoft.ProjectData.GanttChart.LightWPF.Controls.dll)
Syntax
C# |
---|
public void AddAssignment( GanttChartItem item, KeyValuePair<string, double> assignment ) |
Visual Basic (Declaration) |
---|
Public Sub AddAssignment ( _ item As GanttChartItem, _ assignment As KeyValuePair(Of String, Double) _ ) |
Parameters
- item
- Type: DlhSoft.Windows.Controls..::.GanttChartItem
The task item to add the assignment to.
- assignment
- Type: System.Collections.Generic..::.KeyValuePair<(Of <(String, Double>)>)
The assignment to add.