Raises the NewAssignment event when a new assignment is created in the assignment collection of a task to allow the event handlers to create their own assignment type.
Namespace:
DlhSoft.Windows.ControlsAssembly: DlhSoft.ProjectData.GanttChart.Controls (in DlhSoft.ProjectData.GanttChart.Controls.dll)
Syntax
C# |
---|
protected internal virtual Object OnNewAssignment( out bool cancel, Task parentTask, params Object[] parameters ) |
Visual Basic (Declaration) |
---|
Protected Friend Overridable Function OnNewAssignment ( _ <OutAttribute> ByRef cancel As Boolean, _ parentTask As Task, _ ParamArray parameters As Object() _ ) As Object |
Parameters
- cancel
- Type:
System..::.Boolean
%
Returns a value indicating whether the creation of the new item should be cancelled.
- parentTask
- Type: DlhSoft.Windows.Data..::.Task
Parent task of the new assignment.
- parameters
- Type: array<
System..::.Object
>[]()[]
List of parameters used for actually creating the new assignment.